Fix element rendering.

This commit is contained in:
Dermot Duffy
2021-10-18 22:30:44 -07:00
parent 80ae875b77
commit 031d9362d6
3 changed files with 39 additions and 22 deletions
-10
View File
@@ -33,16 +33,6 @@ export class FrigateCardMenu extends LitElement {
@property({ attribute: false })
public buttons: MenuButton[] = [];
public addButton(button: MenuButton): void {
if (!this.buttons.includes(button)) {
this.buttons = [...this.buttons, button];
}
}
public removeButton(target: MenuButton): void {
this.buttons = this.buttons.filter(button => button != target);
}
// Call the callback.
protected _callAction(ev: CustomEvent, button: MenuButton): void {
if (this.menuMode.startsWith('hidden-')) {