mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
refine startup alerts, reversions in mocks
This commit is contained in:
committed by
Aiden McClelland
parent
3ddfcd7895
commit
65c4db09f3
@@ -1,6 +1,5 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { CanActivate, Router, CanActivateChild } from '@angular/router'
|
||||
import { tap } from 'rxjs/operators'
|
||||
import { ServerStatus } from '../services/patch-db/data-model'
|
||||
import { PatchDbService } from '../services/patch-db/patch-db.service'
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ export class UnmaintenanceGuard implements CanActivate {
|
||||
private readonly router: Router,
|
||||
private readonly patch: PatchDbService,
|
||||
) {
|
||||
this.patch.sequence$.subscribe(_ => {
|
||||
this.serverStatus = this.patch.data['server-info'].status
|
||||
this.patch.watch$('server-info', 'status').subscribe(status => {
|
||||
this.serverStatus = status
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user