mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +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: false }) public showAdvanced = false;
|
||||
|
||||
@property({ attribute: false }) public scenes: SceneEntity[] = [];
|
||||
|
||||
protected routerOptions: RouterOptions = {
|
||||
@ -62,7 +60,6 @@ class HaConfigScene extends HassRouterPage {
|
||||
pageEl.narrow = this.narrow;
|
||||
pageEl.isWide = this.isWide;
|
||||
pageEl.route = this.routeTail;
|
||||
pageEl.showAdvanced = this.showAdvanced;
|
||||
|
||||
if (this.hass) {
|
||||
if (!pageEl.scenes || !changedProps) {
|
||||
|
@ -98,8 +98,6 @@ export class HaSceneEditor extends PreventUnsavedMixin(
|
||||
|
||||
@property({ attribute: false }) public scenes!: SceneEntity[];
|
||||
|
||||
@property({ attribute: false }) public showAdvanced = false;
|
||||
|
||||
@state() private _dirty = false;
|
||||
|
||||
@state() private _errors?: string;
|
||||
@ -486,8 +484,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
|
||||
: nothing}
|
||||
</ha-config-section>
|
||||
|
||||
${this.showAdvanced
|
||||
? html` <ha-config-section vertical .isWide=${this.isWide}>
|
||||
<ha-config-section vertical .isWide=${this.isWide}>
|
||||
<div slot="header">
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.scene.editor.entities.header"
|
||||
@ -566,8 +563,7 @@ export class HaSceneEditor extends PreventUnsavedMixin(
|
||||
</div>
|
||||
</ha-card>`
|
||||
: nothing}
|
||||
</ha-config-section>`
|
||||
: nothing}
|
||||
</ha-config-section>
|
||||
`
|
||||
: nothing}
|
||||
</div>`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user