mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
comparing 030
This commit is contained in:
committed by
Aiden McClelland
parent
baad108081
commit
6a92ed80b8
@@ -31,7 +31,7 @@ export class MaintenanceGuard implements CanActivate, CanActivateChild {
|
||||
}
|
||||
|
||||
private runServerStatusCheck (): boolean {
|
||||
if (ServerStatus.BackingUp === this.serverStatus || !this.isFullyDownloaded) {
|
||||
if (ServerStatus.BackingUp === this.serverStatus && !this.isFullyDownloaded) {
|
||||
this.router.navigate(['/maintenance'], { replaceUrl: true })
|
||||
return false
|
||||
} else {
|
||||
|
||||
@@ -105,6 +105,7 @@ export class MockApiService extends ApiService {
|
||||
size: 10000,
|
||||
downloaded: 0,
|
||||
}
|
||||
console.log('here')
|
||||
const patch = [
|
||||
{
|
||||
op: PatchOp.REPLACE,
|
||||
@@ -118,7 +119,6 @@ export class MockApiService extends ApiService {
|
||||
},
|
||||
]
|
||||
const res = await this.http.rpcRequest<WithRevision<null>>({ method: 'db.patch', params: { patch } })
|
||||
|
||||
await this.updateOSProgress(initialProgress.size)
|
||||
|
||||
setTimeout(async () => {
|
||||
@@ -134,7 +134,7 @@ export class MockApiService extends ApiService {
|
||||
value: '3.1.0',
|
||||
},
|
||||
{
|
||||
op: PatchOp.REMOVE,
|
||||
op: PatchOp.REPLACE,
|
||||
path: '/server-info/update-progress',
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user