Include config entry title in delete confirmation prompt (#9866)

This commit is contained in:
Charles Garwood 2021-08-25 13:36:39 -04:00 committed by GitHub
parent a93222dbb2
commit b15684bcbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -549,7 +549,8 @@ export class HaIntegrationCard extends LitElement {
const confirmed = await showConfirmationDialog(this, { const confirmed = await showConfirmationDialog(this, {
text: this.hass.localize( text: this.hass.localize(
"ui.panel.config.integrations.config_entry.delete_confirm" "ui.panel.config.integrations.config_entry.delete_confirm",
{ title: configEntry.title }
), ),
}); });

View File

@ -2317,7 +2317,7 @@
"system_options": "System options", "system_options": "System options",
"documentation": "Documentation", "documentation": "Documentation",
"delete": "Delete", "delete": "Delete",
"delete_confirm": "Are you sure you want to delete this integration?", "delete_confirm": "Are you sure you want to delete the {title} integration?",
"reload": "Reload", "reload": "Reload",
"restart_confirm": "Restart Home Assistant to finish removing this integration", "restart_confirm": "Restart Home Assistant to finish removing this integration",
"reload_confirm": "The integration was reloaded", "reload_confirm": "The integration was reloaded",