mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
re-introduce watch
This commit is contained in:
committed by
Aiden McClelland
parent
a87a20b41b
commit
64b087a78e
@@ -14,10 +14,9 @@ export class UnmaintenanceGuard implements CanActivate {
|
||||
private readonly router: Router,
|
||||
private readonly patch: PatchDbModel,
|
||||
) {
|
||||
this.patch.watch$('server-info', 'status')
|
||||
.pipe(
|
||||
tap(status => this.serverStatus = status),
|
||||
).subscribe()
|
||||
this.patch.sequence$.subscribe(_ => {
|
||||
this.serverStatus = this.patch.data['server-info'].status
|
||||
})
|
||||
}
|
||||
|
||||
canActivate (): boolean {
|
||||
|
||||
Reference in New Issue
Block a user