Update Uninstall add-on dialog (#13898)

This commit is contained in:
Paul Bottein 2022-09-28 11:02:09 +02:00 committed by GitHub
parent 4a07d3d39b
commit 61d09072a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -1024,10 +1024,13 @@ class HassioAddonInfo extends LitElement {
button.progress = true;
const confirmed = await showConfirmationDialog(this, {
title: this.addon.name,
text: "Are you sure you want to uninstall this add-on?",
confirmText: "uninstall add-on",
dismissText: "no",
title: this.supervisor.localize("dialog.uninstall_addon.title", {
name: this.addon.name,
}),
text: this.supervisor.localize("dialog.uninstall_addon.text"),
confirmText: this.supervisor.localize("dialog.uninstall_addon.uninstall"),
dismissText: this.supervisor.localize("common.cancel"),
destructive: true,
});
if (!confirmed) {

View File

@ -5133,6 +5133,11 @@
"text": "To use the new saved configuration this add-on must be restarted.",
"restart": "Restart"
},
"uninstall_addon": {
"title": "Uninstall {name}?",
"text": "Its configuration will be permanently deleted.",
"uninstall": "Uninstall"
},
"hardware": {
"title": "Hardware",
"search": "Search hardware",