mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-15 05:50:24 +00:00
Fix backup download and delete actions (#27851)
This commit is contained in:
@@ -569,15 +569,15 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
|
|||||||
navigate(`/config/backup/details/${id}`);
|
navigate(`/config/backup/details/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _downloadBackup(ev): Promise<void> {
|
private _downloadBackup = async (ev): Promise<void> => {
|
||||||
const backup = ev.parentElement.anchorElement.backup;
|
const backup = ev.parentElement.anchorElement.backup;
|
||||||
if (!backup) {
|
if (!backup) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
downloadBackup(this.hass, this, backup, this.config);
|
downloadBackup(this.hass, this, backup, this.config);
|
||||||
}
|
};
|
||||||
|
|
||||||
private async _deleteBackup(ev): Promise<void> {
|
private _deleteBackup = async (ev): Promise<void> => {
|
||||||
const backup = ev.parentElement.anchorElement.backup;
|
const backup = ev.parentElement.anchorElement.backup;
|
||||||
if (!backup) {
|
if (!backup) {
|
||||||
return;
|
return;
|
||||||
@@ -609,7 +609,7 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fireEvent(this, "ha-refresh-backup-info");
|
fireEvent(this, "ha-refresh-backup-info");
|
||||||
}
|
};
|
||||||
|
|
||||||
private async _deleteSelected() {
|
private async _deleteSelected() {
|
||||||
const confirm = await showConfirmationDialog(this, {
|
const confirm = await showConfirmationDialog(this, {
|
||||||
|
|||||||
Reference in New Issue
Block a user