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),