Skip to content

Commit

Permalink
feat: add compact_view options in UI editor
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Dec 2, 2021
1 parent 046fdb0 commit 5aaede9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/purifier-card-editor.js
Expand Up @@ -90,6 +90,21 @@ export class PurifierCardEditor extends LitElement {
</paper-listbox>
</paper-dropdown-menu>
<p class="option">
<ha-switch
aria-label=${localize(
this._compact_view
? 'editor.compact_view_aria_label_off'
: 'editor.compact_view_aria_label_on'
)}
.checked=${this._compact_view !== false}
.configValue=${'compact_view'}
@change=${this._valueChanged}
>
</ha-switch>
${localize('editor.compact_view')}
</p>
<p class="option">
<ha-switch
aria-label=${localize(
Expand Down

0 comments on commit 5aaede9

Please sign in to comment.