Mark delete backup dialog as destructive (#23008)

This commit is contained in:
Jan-Philipp Benecke 2024-11-26 20:54:10 +01:00 committed by GitHub
parent 4655929fed
commit 4df90ebbc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -323,6 +323,7 @@ export class HassioBackups extends LitElement {
number: this._selectedBackups.length,
}),
confirmText: this.supervisor.localize("backup.delete_backup_confirm"),
destructive: true,
});
if (!confirm) {

View File

@ -302,6 +302,7 @@ class HassioBackupDialog
text: supervisor!.localize("backup.confirm_delete_text"),
confirmText: supervisor!.localize("backup.delete"),
dismissText: supervisor!.localize("backup.cancel"),
destructive: true,
}))
) {
return;