Add 'image' view.
This commit is contained in:
@@ -102,6 +102,7 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
||||
snapshots: localize('menu.snapshots'),
|
||||
clip: localize('menu.clip'),
|
||||
snapshot: localize('menu.snapshot'),
|
||||
image: localize('menu.image'),
|
||||
};
|
||||
|
||||
const menuModes = {
|
||||
@@ -382,6 +383,18 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
||||
></ha-switch>
|
||||
</ha-formfield>
|
||||
<br />
|
||||
<ha-formfield
|
||||
.label=${localize('editor.show_button') +
|
||||
': ' +
|
||||
localize('menu.image')}
|
||||
>
|
||||
<ha-switch
|
||||
.checked=${this._config?.menu_buttons?.image ?? false}
|
||||
.configValue=${'menu_buttons.image'}
|
||||
@change=${this._valueChanged}
|
||||
></ha-switch>
|
||||
</ha-formfield>
|
||||
<br />
|
||||
<ha-formfield
|
||||
.label=${localize('editor.show_button') +
|
||||
': ' +
|
||||
|
||||
Reference in New Issue
Block a user