From 601a165b2a39be4eab4bd7a284553236d372254f Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 31 Jan 2024 17:48:22 +0100 Subject: [PATCH] Disable reorder for readonly automation and disabled block (#19592) --- src/panels/config/automation/action/ha-automation-action.ts | 4 ++-- .../automation/action/types/ha-automation-action-choose.ts | 4 ++-- .../config/automation/condition/ha-automation-condition.ts | 4 ++-- src/panels/config/automation/trigger/ha-automation-trigger.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/panels/config/automation/action/ha-automation-action.ts b/src/panels/config/automation/action/ha-automation-action.ts index aa9a9505d6..3cf22ec221 100644 --- a/src/panels/config/automation/action/ha-automation-action.ts +++ b/src/panels/config/automation/action/ha-automation-action.ts @@ -77,7 +77,7 @@ export default class HaAutomationAction extends LitElement { return html` - ${this._showReorder + ${this._showReorder && !this.disabled ? html`
diff --git a/src/panels/config/automation/action/types/ha-automation-action-choose.ts b/src/panels/config/automation/action/types/ha-automation-action-choose.ts index 43131917e7..56dfe10da7 100644 --- a/src/panels/config/automation/action/types/ha-automation-action-choose.ts +++ b/src/panels/config/automation/action/types/ha-automation-action-choose.ts @@ -122,7 +122,7 @@ export class HaChooseAction extends LitElement implements ActionElement { return html` @@ -148,7 +148,7 @@ export class HaChooseAction extends LitElement implements ActionElement { ? "" : this._getDescription(option))} - ${this._showReorder + ${this._showReorder && !this.disabled ? html`
diff --git a/src/panels/config/automation/condition/ha-automation-condition.ts b/src/panels/config/automation/condition/ha-automation-condition.ts index c4639ffc87..916d32f16b 100644 --- a/src/panels/config/automation/condition/ha-automation-condition.ts +++ b/src/panels/config/automation/condition/ha-automation-condition.ts @@ -117,7 +117,7 @@ export default class HaAutomationCondition extends LitElement { return html` - ${this._showReorder + ${this._showReorder && !this.disabled ? html`
diff --git a/src/panels/config/automation/trigger/ha-automation-trigger.ts b/src/panels/config/automation/trigger/ha-automation-trigger.ts index e100bd7f6f..6de4247300 100644 --- a/src/panels/config/automation/trigger/ha-automation-trigger.ts +++ b/src/panels/config/automation/trigger/ha-automation-trigger.ts @@ -74,7 +74,7 @@ export default class HaAutomationTrigger extends LitElement { return html` - ${this._showReorder + ${this._showReorder && !this.disabled ? html`