Merge pull request #978 from dermotduffy/fix-elements

Fix filtering of menu icons causing custom icons to disappear
This commit is contained in:
Dermot Duffy
2023-02-28 07:39:50 -08:00
committed by GitHub
+4 -2
View File
@@ -309,11 +309,13 @@ export class FrigateCardMenu extends LitElement {
(button) => !button.alignment || button.alignment === 'matching',
)
: this.buttons.filter((button) => button.icon === FRIGATE_BUTTON_MENU_ICON)
).filter((button) => !!button.enabled)
).filter((button) => button.enabled !== false);
const opposingButtons =
style !== 'hidden' || this.expanded
? this.buttons.filter((button) => button.alignment === 'opposing' && button.enabled)
? this.buttons.filter(
(button) => button.alignment === 'opposing' && button.enabled !== false,
)
: [];
const matchingStyle = {