Change menu subitem 'disabled' => 'enabled'
This commit is contained in:
1 parent
ac7572b53d
commit
f917dbee75
3 files changed
+3
-2
No files matched your search
@@ -49,7 +49,7 @@ export class FrigateCardSubmenu extends LitElement {
|
||||
?twoline=${!!item.subtitle}
|
||||
?selected=${item.selected}
|
||||
?activated=${item.selected}
|
||||
?disabled=${!!item.disabled}
|
||||
?disabled=${item.enabled === false}
|
||||
aria-label="${stateParameters.title || ''}"
|
||||
@action=${(ev) => {
|
||||
// Attach the action config so ascendants have access to it.
|
||||
|
||||
+1
-1
@@ -432,7 +432,7 @@ const menuSubmenuItemSchema = elementsBaseSchema.extend({
|
||||
state_color: z.boolean().default(true).optional(),
|
||||
selected: z.boolean().default(false).optional(),
|
||||
subtitle: z.string().optional(),
|
||||
disabled: z.boolean().optional(),
|
||||
enabled: z.boolean().default(true).optional(),
|
||||
});
|
||||
export type MenuSubmenuItem = z.infer<typeof menuSubmenuItemSchema>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user