diff --git a/src/panels/config/integrations/ha-integration-card.ts b/src/panels/config/integrations/ha-integration-card.ts index 59d61f189a..907ea34a68 100644 --- a/src/panels/config/integrations/ha-integration-card.ts +++ b/src/panels/config/integrations/ha-integration-card.ts @@ -634,9 +634,16 @@ export class HaIntegrationCard extends LitElement { const entryId = configEntry.entry_id; const confirmed = await showConfirmationDialog(this, { - text: this.hass.localize( - "ui.panel.config.integrations.config_entry.disable.disable_confirm" + title: this.hass.localize( + "ui.panel.config.integrations.config_entry.disable_confirm_title", + { title: configEntry.title } ), + text: this.hass.localize( + "ui.panel.config.integrations.config_entry.disable_confirm_text" + ), + confirmText: this.hass!.localize("ui.common.disable"), + dismissText: this.hass!.localize("ui.common.cancel"), + destructive: true, }); if (!confirmed) { @@ -692,10 +699,16 @@ export class HaIntegrationCard extends LitElement { const entryId = configEntry.entry_id; const confirmed = await showConfirmationDialog(this, { - text: this.hass.localize( - "ui.panel.config.integrations.config_entry.delete_confirm", + title: this.hass.localize( + "ui.panel.config.integrations.config_entry.delete_confirm_title", { title: configEntry.title } ), + text: this.hass.localize( + "ui.panel.config.integrations.config_entry.delete_confirm_text" + ), + confirmText: this.hass!.localize("ui.common.delete"), + dismissText: this.hass!.localize("ui.common.cancel"), + destructive: true, }); if (!confirmed) { diff --git a/src/translations/en.json b/src/translations/en.json index 2568636938..4afa6ffc7d 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2857,13 +2857,16 @@ "download_diagnostics": "Download diagnostics", "known_issues": "Known issues", "delete": "Delete", - "delete_confirm": "Are you sure you want to delete the {title} integration?", + "delete_confirm_title": "Delete {title}?", + "delete_confirm_text": "Its devices and entities will be permantly deleted.", "reload": "Reload", "restart_confirm": "Restart Home Assistant to finish removing this integration", "reload_confirm": "The integration was reloaded", "reload_restart_confirm": "Restart Home Assistant to finish reloading this integration", "disable_restart_confirm": "Restart Home Assistant to finish disabling this integration", "enable_restart_confirm": "Restart Home Assistant to finish enabling this integration", + "disable_confirm_title": "Disable {title}?", + "disable_confirm_text": "Its devices and entities will be disabled.", "disable_error": "Enabling or disabling of the integration failed", "manuf": "by {manufacturer}", "via": "Connected via", @@ -2884,8 +2887,7 @@ "user": "user", "integration": "integration", "device": "device" - }, - "disable_confirm": "Are you sure you want to disable this config entry? Its devices and entities will be disabled." + } }, "provided_by_custom_integration": "Provided by a custom integration", "depends_on_cloud": "Depends on the cloud",