Update delete blueprint dialog (#13770)

This commit is contained in:
Paul Bottein 2022-09-16 16:40:25 +02:00 committed by GitHub
parent c5f4e8ffdd
commit a97dfbb51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -329,11 +329,16 @@ class HaBlueprintOverview extends LitElement {
if (
!(await showConfirmationDialog(this, {
title: this.hass.localize(
"ui.panel.config.blueprint.overview.confirm_delete_header"
"ui.panel.config.blueprint.overview.confirm_delete_title"
),
text: this.hass.localize(
"ui.panel.config.blueprint.overview.confirm_delete_text"
"ui.panel.config.blueprint.overview.confirm_delete_text",
"name",
{ name: blueprint.name }
),
confirmText: this.hass!.localize("ui.common.delete"),
dismissText: this.hass!.localize("ui.common.cancel"),
destructive: true,
}))
) {
return;

View File

@ -2239,8 +2239,8 @@
"automation": "Automation",
"script": "Script"
},
"confirm_delete_header": "Delete this blueprint?",
"confirm_delete_text": "Are you sure you want to delete this blueprint?",
"confirm_delete_title": "Delete blueprint?",
"confirm_delete_text": "{name} will be permanently deleted.",
"add_blueprint": "Import blueprint",
"no_blueprints": "[%key:ui::panel::config::automation::editor::blueprint::no_blueprints%]",
"create_automation": "Create automation",