comparing 030

This commit is contained in:
Drew Ansbacher
2021-09-15 14:20:32 -06:00
committed by Aiden McClelland
parent baad108081
commit 6a92ed80b8
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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',
},
]