Skip to content

Commit

Permalink
reorder main config to match exception config
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar committed Aug 25, 2020
1 parent 7d34477 commit f8223a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 9 additions & 9 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit f8223a8

Please sign in to comment.