mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
ui: backup fin state ignore unreachable
This commit is contained in:
committed by
Aiden McClelland
parent
2022a7fc1d
commit
73d40c71ad
@@ -53,6 +53,7 @@ export class AppModel extends MapSubject<AppInstalledFull> {
|
||||
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<AppInstalledFull> {
|
||||
)
|
||||
}
|
||||
|
||||
// when an app is installing
|
||||
// when an app is backing up
|
||||
watchForBackup (appId: string): Observable<string | undefined> {
|
||||
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),
|
||||
|
||||
Reference in New Issue
Block a user