re-introduce watch

This commit is contained in:
Matt Hill
2021-07-07 15:28:40 -06:00
committed by Aiden McClelland
parent 2255089484
commit c02c0a0c3d
4 changed files with 29 additions and 24 deletions

View File

@@ -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 {