mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +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() {
|
private _subscribeBackupEvents() {
|
||||||
this._unsub = subscribeBackupEvents(this.hass!, (event) => {
|
this._unsub = subscribeBackupEvents(this.hass!, (event) => {
|
||||||
|
if (!this._error && event.manager_state === "idle") {
|
||||||
|
this.closeDialog();
|
||||||
|
}
|
||||||
if (event.manager_state !== "restore_backup") {
|
if (event.manager_state !== "restore_backup") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ declare global {
|
|||||||
class HaConfigBackup extends SubscribeMixin(HassRouterPage) {
|
class HaConfigBackup extends SubscribeMixin(HassRouterPage) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property({ attribute: false }) public cloudStatus!: CloudStatus;
|
@property({ attribute: false }) public cloudStatus?: CloudStatus;
|
||||||
|
|
||||||
@property({ type: Boolean }) public narrow = false;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user