web: use constants for custom event names

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-03-23 15:16:56 +01:00
parent 56344cadeb
commit 068d281b19
18 changed files with 38 additions and 19 deletions

View File

@ -13,6 +13,7 @@ import AKGlobal from "../../authentik.css";
import "./TablePagination";
import "../EmptyState";
import { EVENT_REFRESH } from "../../constants";
export class TableColumn {
@ -120,7 +121,7 @@ export abstract class Table<T> extends LitElement {
constructor() {
super();
this.addEventListener("ak-refresh", () => {
this.addEventListener(EVENT_REFRESH, () => {
this.fetch();
});
}