diff --git a/ui/src/app/guards/maintenance.guard.ts b/ui/src/app/guards/maintenance.guard.ts index 72b304855..95797a6cf 100644 --- a/ui/src/app/guards/maintenance.guard.ts +++ b/ui/src/app/guards/maintenance.guard.ts @@ -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 { diff --git a/ui/src/app/services/api/embassy-mock-api.service.ts b/ui/src/app/services/api/embassy-mock-api.service.ts index d92ab1209..4487c2fbf 100644 --- a/ui/src/app/services/api/embassy-mock-api.service.ts +++ b/ui/src/app/services/api/embassy-mock-api.service.ts @@ -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>({ 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', }, ]