From f8223a893843e88b8305f5af2e683fa28570b2c0 Mon Sep 17 00:00:00 2001 From: maykar <25127328+maykar@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:48:46 +0000 Subject: [PATCH] reorder main config to match exception config --- README.md | 4 ++-- src/editor.js | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5bf81c3..41ea403 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Custom Header adds enhancements and customization options to Home Assistant's Lo ### :warning: Important -* Some config options can remove your ability to access UI elements. Each of these options is marked with a warning in the docs and in the UI editor. Be sure to read the [important notes](https://maykar.github.io/custom-header/#intro/notes) section of the docs or the warning at the top of the UI editor for instructions on how to restore the default header if needed. -* Custom Header version 1.5.0 and above is designed for Home Assistant version 0.110 and above. If you are on lower versions of Home Assistant you need to use earlier versions of CH. +- Some config options can remove your ability to access UI elements. Each of these options is marked with a warning in the docs and in the UI editor. Be sure to read the [important notes](https://maykar.github.io/custom-header/#intro/notes) section of the docs or the warning at the top of the UI editor for instructions on how to restore the default header if needed. +- Each release of Custom Header is designed for the latest versions of Home Assistant. If you are on lower versions of Home Assistant you need to use earlier versions of CH. ## Features diff --git a/src/editor.js b/src/editor.js index 4368662..7969476 100644 --- a/src/editor.js +++ b/src/editor.js @@ -378,15 +378,6 @@ class ChConfigEditor extends LitElement { localize('editor.disabled_mode_title'), localize('editor.disabled_mode_tip'), )} - ${!this.exception - ? this.haSwitch( - 'restrict_users', - true, - false, - localize('editor.restrict_users_title'), - localize('editor.restrict_users_tip'), - ) - : ''} ${this.haSwitch( 'footer_mode', true, @@ -438,6 +429,15 @@ class ChConfigEditor extends LitElement { localize('editor.hidden_tab_redirect_tip'), )} ${this.haSwitch('shadow', true, false, localize('editor.shadow_title'), localize('editor.shadow_tip'))} + ${!this.exception + ? this.haSwitch( + 'restrict_users', + true, + false, + localize('editor.restrict_users_title'), + localize('editor.restrict_users_tip'), + ) + : ''} ${!this.exception && !this.getConfig('editor_warnings') ? this.haSwitch( 'editor_warnings',