Add 'image' view.

This commit is contained in:
Dermot Duffy
2021-10-16 21:02:07 -07:00
parent 3c20352891
commit 0d7c20b550
11 changed files with 97 additions and 4 deletions
+13
View File
@@ -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') +
': ' +