Merge pull request #978 from dermotduffy/fix-elements
Fix filtering of menu icons causing custom icons to disappear
This commit is contained in:
@@ -309,11 +309,13 @@ export class FrigateCardMenu extends LitElement {
|
|||||||
(button) => !button.alignment || button.alignment === 'matching',
|
(button) => !button.alignment || button.alignment === 'matching',
|
||||||
)
|
)
|
||||||
: this.buttons.filter((button) => button.icon === FRIGATE_BUTTON_MENU_ICON)
|
: this.buttons.filter((button) => button.icon === FRIGATE_BUTTON_MENU_ICON)
|
||||||
).filter((button) => !!button.enabled)
|
).filter((button) => button.enabled !== false);
|
||||||
|
|
||||||
const opposingButtons =
|
const opposingButtons =
|
||||||
style !== 'hidden' || this.expanded
|
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 = {
|
const matchingStyle = {
|
||||||
|
|||||||
Reference in New Issue
Block a user