mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
re-introduce watch
This commit is contained in:
committed by
Aiden McClelland
parent
2255089484
commit
c02c0a0c3d
@@ -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