web: refresh status card on ak-refresh event
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
0671d712fa
commit
3c2d541d60
|
@ -16,6 +16,13 @@ export abstract class AdminStatusCard<T> extends AggregateCard {
|
|||
|
||||
value?: T;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.addEventListener("ak-refresh", () => {
|
||||
this.requestUpdate();
|
||||
});
|
||||
}
|
||||
|
||||
renderValue(): TemplateResult {
|
||||
return html`${this.value}`;
|
||||
}
|
||||
|
|
Reference in New Issue