Remove re order mode for blueprint automation editor (#13637)

This commit is contained in:
Paul Bottein 2022-09-07 14:23:42 +02:00 committed by GitHub
parent b553a3fd92
commit 57c5c1c191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,15 +216,18 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
</mwc-list-item>
`
: ""}
<mwc-list-item
graphic="icon"
@click=${this._toggleReOrderMode}
.disabled=${this._mode !== "gui"}
>
${this.hass.localize("ui.panel.config.automation.editor.re_order")}
<ha-svg-icon slot="graphic" .path=${mdiSort}></ha-svg-icon>
</mwc-list-item>
${this._config && !("use_blueprint" in this._config)
? html`<mwc-list-item
graphic="icon"
@click=${this._toggleReOrderMode}
.disabled=${this._mode === "yaml"}
>
${this.hass.localize(
"ui.panel.config.automation.editor.re_order"
)}
<ha-svg-icon slot="graphic" .path=${mdiSort}></ha-svg-icon>
</mwc-list-item>`
: ""}
<mwc-list-item
.disabled=${!this.automationId}