diff --git a/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts b/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts index 5aaad37f09..b93afcc17d 100644 --- a/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts +++ b/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts @@ -157,9 +157,16 @@ export class HaConfigLovelaceRescources extends LitElement { removeResource: async () => { if ( !(await showConfirmationDialog(this, { - text: this.hass!.localize( - "ui.panel.config.lovelace.resources.confirm_delete" + title: this.hass!.localize( + "ui.panel.config.lovelace.resources.confirm_delete_title" ), + text: this.hass!.localize( + "ui.panel.config.lovelace.resources.confirm_delete_text", + { url: resource!.url } + ), + dismissText: this.hass!.localize("ui.common.cancel"), + confirmText: this.hass!.localize("ui.common.delete"), + destructive: true, })) ) { return false; diff --git a/src/translations/en.json b/src/translations/en.json index 4afa6ffc7d..78e6061de7 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1761,7 +1761,8 @@ "no_resources": "No resources", "add_resource": "Add resource" }, - "confirm_delete": "Are you sure you want to delete this resource?", + "confirm_delete_title": "Delete resource?", + "confirm_delete_text": "{url} will be permanently deleted.", "refresh_header": "Do you want to refresh?", "refresh_body": "You have to refresh the page to complete the removal. Do you want to refresh now?", "cant_edit_yaml": "You are using your dashboard in YAML mode, therefore you cannot manage your resources through the UI. Manage them in configuration.yaml.",