diff --git a/src/panels/config/scene/ha-scene-dashboard.ts b/src/panels/config/scene/ha-scene-dashboard.ts index cd31e69268..14830179ec 100644 --- a/src/panels/config/scene/ha-scene-dashboard.ts +++ b/src/panels/config/scene/ha-scene-dashboard.ts @@ -268,18 +268,22 @@ class HaSceneDashboard extends LitElement { private _activateScene = async (scene: SceneEntity) => { await activateScene(this.hass, scene.entity_id); showToast(this, { - message: this.hass.localize( - "ui.panel.config.scene.activated", - "name", - computeStateName(scene) - ), + message: this.hass.localize("ui.panel.config.scene.activated", { + name: computeStateName(scene), + }), }); forwardHaptic("light"); }; private _deleteConfirm(scene: SceneEntity): void { showConfirmationDialog(this, { - text: this.hass!.localize("ui.panel.config.scene.picker.delete_confirm"), + title: this.hass!.localize( + "ui.panel.config.scene.picker.delete_confirm_title" + ), + text: this.hass!.localize( + "ui.panel.config.scene.picker.delete_confirm_text", + { name: computeStateName(scene) } + ), confirmText: this.hass!.localize("ui.common.delete"), dismissText: this.hass!.localize("ui.common.cancel"), confirm: () => this._delete(scene), diff --git a/src/panels/config/scene/ha-scene-editor.ts b/src/panels/config/scene/ha-scene-editor.ts index 0fb724c635..b1f1e47599 100644 --- a/src/panels/config/scene/ha-scene-editor.ts +++ b/src/panels/config/scene/ha-scene-editor.ts @@ -785,10 +785,18 @@ export class HaSceneEditor extends SubscribeMixin( private _deleteTapped(): void { showConfirmationDialog(this, { - text: this.hass!.localize("ui.panel.config.scene.picker.delete_confirm"), + title: this.hass!.localize( + "ui.panel.config.scene.picker.delete_confirm_title" + ), + text: this.hass!.localize( + "ui.panel.config.scene.picker.delete_confirm_text", + "name", + this._config?.name + ), confirmText: this.hass!.localize("ui.common.delete"), dismissText: this.hass!.localize("ui.common.cancel"), confirm: () => this._delete(), + destructive: true, }); } diff --git a/src/translations/en.json b/src/translations/en.json index 78e6061de7..e15a9985d5 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2338,7 +2338,8 @@ "activate": "Activate", "delete_scene": "Delete scene", "delete": "[%key:ui::common::delete%]", - "delete_confirm": "Are you sure you want to delete this scene?", + "delete_confirm_title": "Delete scene?", + "delete_confirm_text": "{name} will be permanently deleted.", "duplicate_scene": "Duplicate scene", "duplicate": "[%key:ui::common::duplicate%]", "headers": {