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

@ -1,5 +1,6 @@
import { html, TemplateResult } from "lit-html";
import { until } from "lit-html/directives/until";
import { EVENT_REFRESH } from "../../../constants";
import { AggregateCard } from "../../../elements/cards/AggregateCard";
import { SpinnerSize } from "../../../elements/Spinner";
@ -18,7 +19,7 @@ export abstract class AdminStatusCard<T> extends AggregateCard {
constructor() {
super();
this.addEventListener("ak-refresh", () => {
this.addEventListener(EVENT_REFRESH, () => {
this.requestUpdate();
});
}