mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Close restore dialog if done (#23566)
This commit is contained in:
parent
1faf024c5b
commit
3ff5b832bc
@ -212,6 +212,9 @@ class DialogRestoreBackup extends LitElement implements HassDialog {
|
||||
|
||||
private _subscribeBackupEvents() {
|
||||
this._unsub = subscribeBackupEvents(this.hass!, (event) => {
|
||||
if (!this._error && event.manager_state === "idle") {
|
||||
this.closeDialog();
|
||||
}
|
||||
if (event.manager_state !== "restore_backup") {
|
||||
return;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ declare global {
|
||||
class HaConfigBackup extends SubscribeMixin(HassRouterPage) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ attribute: false }) public cloudStatus!: CloudStatus;
|
||||
@property({ attribute: false }) public cloudStatus?: CloudStatus;
|
||||
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user