mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Remove advanced mode from scenes editor (#25054)
This commit is contained in:
parent
f6e4f4c0d6
commit
53426d647a
@ -26,8 +26,6 @@ class HaConfigScene extends HassRouterPage {
|
|||||||
|
|
||||||
@property({ attribute: "is-wide", type: Boolean }) public isWide = false;
|
@property({ attribute: "is-wide", type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property({ attribute: false }) public showAdvanced = false;
|
|
||||||
|
|
||||||
@property({ attribute: false }) public scenes: SceneEntity[] = [];
|
@property({ attribute: false }) public scenes: SceneEntity[] = [];
|
||||||
|
|
||||||
protected routerOptions: RouterOptions = {
|
protected routerOptions: RouterOptions = {
|
||||||
@ -62,7 +60,6 @@ class HaConfigScene extends HassRouterPage {
|
|||||||
pageEl.narrow = this.narrow;
|
pageEl.narrow = this.narrow;
|
||||||
pageEl.isWide = this.isWide;
|
pageEl.isWide = this.isWide;
|
||||||
pageEl.route = this.routeTail;
|
pageEl.route = this.routeTail;
|
||||||
pageEl.showAdvanced = this.showAdvanced;
|
|
||||||
|
|
||||||
if (this.hass) {
|
if (this.hass) {
|
||||||
if (!pageEl.scenes || !changedProps) {
|
if (!pageEl.scenes || !changedProps) {
|
||||||
|
@ -98,8 +98,6 @@ export class HaSceneEditor extends PreventUnsavedMixin(
|
|||||||
|
|
||||||
@property({ attribute: false }) public scenes!: SceneEntity[];
|
@property({ attribute: false }) public scenes!: SceneEntity[];
|
||||||
|
|
||||||
@property({ attribute: false }) public showAdvanced = false;
|
|
||||||
|
|
||||||
@state() private _dirty = false;
|
@state() private _dirty = false;
|
||||||
|
|
||||||
@state() private _errors?: string;
|
@state() private _errors?: string;
|
||||||
@ -486,8 +484,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
|
|||||||
: nothing}
|
: nothing}
|
||||||
</ha-config-section>
|
</ha-config-section>
|
||||||
|
|
||||||
${this.showAdvanced
|
<ha-config-section vertical .isWide=${this.isWide}>
|
||||||
? html` <ha-config-section vertical .isWide=${this.isWide}>
|
|
||||||
<div slot="header">
|
<div slot="header">
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.scene.editor.entities.header"
|
"ui.panel.config.scene.editor.entities.header"
|
||||||
@ -566,8 +563,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
|
|||||||
</div>
|
</div>
|
||||||
</ha-card>`
|
</ha-card>`
|
||||||
: nothing}
|
: nothing}
|
||||||
</ha-config-section>`
|
</ha-config-section>
|
||||||
: nothing}
|
|
||||||
`
|
`
|
||||||
: nothing}
|
: nothing}
|
||||||
</div>`;
|
</div>`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user