mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
ui: beautiful checkbox for marking to eject drive after backup. broken
This commit is contained in:
committed by
Aiden McClelland
parent
0cd2a32b24
commit
a896f4c7a1
@@ -60,6 +60,19 @@ export class AppModel extends MapSubject<AppInstalledFull> {
|
||||
)
|
||||
}
|
||||
|
||||
// when an app is installing
|
||||
watchForBackup (appId: string): Observable<string | undefined> {
|
||||
const toWatch = super.watch(appId)
|
||||
if (!toWatch) return of(undefined)
|
||||
|
||||
return toWatch.status.pipe(
|
||||
pairwise(),
|
||||
filter( ([old, _]) => old === AppStatus.CREATING_BACKUP),
|
||||
take(1),
|
||||
mapTo(appId),
|
||||
)
|
||||
}
|
||||
|
||||
watchForInstallations (appIds: { id: string }[]): Observable<string> {
|
||||
return merge(...appIds.map(({ id }) => this.watchForInstallation(id))).pipe(
|
||||
filter(t => !!t),
|
||||
|
||||
Reference in New Issue
Block a user