mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
no pipe on sub
This commit is contained in:
committed by
Matt Hill
parent
4db9ccf27c
commit
0d8c5447cb
@@ -246,15 +246,6 @@ export class AppComponent {
|
||||
|
||||
private watchUpdateProgress (): Subscription {
|
||||
return this.patch.watch$('server-info', 'update-progress')
|
||||
.pipe(
|
||||
filter(progress => !!progress),
|
||||
takeWhile(progress => progress.downloaded < progress.size),
|
||||
finalize(async () => {
|
||||
if (this.osUpdateProgress) this.osUpdateProgress.downloaded = this.osUpdateProgress.size
|
||||
await pauseFor(200)
|
||||
this.osUpdateProgress = undefined
|
||||
}),
|
||||
)
|
||||
.subscribe(progress => {
|
||||
this.osUpdateProgress = progress
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user