From 73d40c71ad9dde2a2d7d4c60527aecf4200e6ba0 Mon Sep 17 00:00:00 2001 From: Aaron Greenspan Date: Thu, 14 Jan 2021 15:37:19 -0700 Subject: [PATCH] ui: backup fin state ignore unreachable --- ui/src/app/models/app-model.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/app/models/app-model.ts b/ui/src/app/models/app-model.ts index ac3f5171e..4f255ccff 100644 --- a/ui/src/app/models/app-model.ts +++ b/ui/src/app/models/app-model.ts @@ -53,6 +53,7 @@ export class AppModel extends MapSubject { if (!toWatch) return of(undefined) return toWatch.status.pipe( + filter(s => s !== AppStatus.UNREACHABLE && s !== AppStatus.UNKNOWN), pairwise(), filter( ([old, _]) => old === AppStatus.INSTALLING ), take(1), @@ -60,12 +61,13 @@ export class AppModel extends MapSubject { ) } - // when an app is installing + // when an app is backing up watchForBackup (appId: string): Observable { const toWatch = super.watch(appId) if (!toWatch) return of(undefined) return toWatch.status.pipe( + filter(s => s !== AppStatus.UNREACHABLE && s !== AppStatus.UNKNOWN), pairwise(), filter( ([old, _]) => old === AppStatus.CREATING_BACKUP), take(1),