diff --git a/src/editor.ts b/src/editor.ts index ebd52bd7..9eb6fc24 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -1,6 +1,7 @@ import { fireEvent, HomeAssistant, LovelaceCardEditor } from 'custom-card-helpers'; import { CSSResultGroup, html, LitElement, TemplateResult, unsafeCSS } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; +import { classMap } from 'lit/directives/class-map.js'; import { copyConfig, deleteConfigValue, @@ -598,41 +599,47 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor } protected _renderViewScanMenu(): TemplateResult { + const submenuClasses = { + submenu: true, + selected: !!this._expandedMenus[MENU_VIEW_SCAN], + }; return html` -