diff --git a/src/panels/config/automation/action/ha-automation-action-row.ts b/src/panels/config/automation/action/ha-automation-action-row.ts index c742eefc01..0d89543050 100644 --- a/src/panels/config/automation/action/ha-automation-action-row.ts +++ b/src/panels/config/automation/action/ha-automation-action-row.ts @@ -404,11 +404,15 @@ export default class HaAutomationActionRow extends LitElement { private _onDelete() { showConfirmationDialog(this, { + title: this.hass.localize( + "ui.panel.config.automation.editor.actions.delete_confirm_title" + ), text: this.hass.localize( - "ui.panel.config.automation.editor.actions.delete_confirm" + "ui.panel.config.automation.editor.actions.delete_confirm_text" ), dismissText: this.hass.localize("ui.common.cancel"), confirmText: this.hass.localize("ui.common.delete"), + destructive: true, confirm: () => { fireEvent(this, "value-changed", { value: null }); }, diff --git a/src/panels/config/automation/condition/ha-automation-condition-row.ts b/src/panels/config/automation/condition/ha-automation-condition-row.ts index dcc93b8015..386e158d01 100644 --- a/src/panels/config/automation/condition/ha-automation-condition-row.ts +++ b/src/panels/config/automation/condition/ha-automation-condition-row.ts @@ -314,11 +314,15 @@ export default class HaAutomationConditionRow extends LitElement { private _onDelete() { showConfirmationDialog(this, { + title: this.hass.localize( + "ui.panel.config.automation.editor.conditions.delete_confirm_title" + ), text: this.hass.localize( - "ui.panel.config.automation.editor.conditions.delete_confirm" + "ui.panel.config.automation.editor.conditions.delete_confirm_text" ), dismissText: this.hass.localize("ui.common.cancel"), confirmText: this.hass.localize("ui.common.delete"), + destructive: true, confirm: () => { fireEvent(this, "value-changed", { value: null }); }, diff --git a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts index 2674664af9..8d71152164 100644 --- a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts +++ b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts @@ -430,11 +430,15 @@ export default class HaAutomationTriggerRow extends LitElement { private _onDelete() { showConfirmationDialog(this, { + title: this.hass.localize( + "ui.panel.config.automation.editor.triggers.delete_confirm_title" + ), text: this.hass.localize( - "ui.panel.config.automation.editor.triggers.delete_confirm" + "ui.panel.config.automation.editor.triggers.delete_confirm_text" ), dismissText: this.hass.localize("ui.common.cancel"), confirmText: this.hass.localize("ui.common.delete"), + destructive: true, confirm: () => { fireEvent(this, "value-changed", { value: null }); }, diff --git a/src/translations/en.json b/src/translations/en.json index 3e31800936..08396ef1ab 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1888,7 +1888,8 @@ "change_alias": "Rename trigger", "alias": "Trigger name", "delete": "[%key:ui::common::delete%]", - "delete_confirm": "Are you sure you want to delete this?", + "delete_confirm_title": "Delete trigger?", + "delete_confirm_text": "It will be permanently deleted.", "unsupported_platform": "No visual editor support for platform: {platform}", "type_select": "Trigger type", "type": { @@ -2008,7 +2009,8 @@ "change_alias": "Rename condition", "alias": "Condition name", "delete": "[%key:ui::common::delete%]", - "delete_confirm": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm%]", + "delete_confirm_title": "Delete condition?", + "delete_confirm_text": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm_text%]", "unsupported_condition": "No visual editor support for condition: {condition}", "type_select": "Condition type", "type": { @@ -2102,7 +2104,8 @@ "disable": "Disable", "disabled": "Disabled", "delete": "[%key:ui::common::delete%]", - "delete_confirm": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm%]", + "delete_confirm_title": "Delete action?", + "delete_confirm_text": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm_text%]", "unsupported_action": "No visual editor support for action: {action}", "type_select": "Action type", "type": {