mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +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 {
|
private runServerStatusCheck (): boolean {
|
||||||
if (ServerStatus.BackingUp === this.serverStatus || !this.isFullyDownloaded) {
|
if (ServerStatus.BackingUp === this.serverStatus && !this.isFullyDownloaded) {
|
||||||
this.router.navigate(['/maintenance'], { replaceUrl: true })
|
this.router.navigate(['/maintenance'], { replaceUrl: true })
|
||||||
return false
|
return false
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ export class MockApiService extends ApiService {
|
|||||||
size: 10000,
|
size: 10000,
|
||||||
downloaded: 0,
|
downloaded: 0,
|
||||||
}
|
}
|
||||||
|
console.log('here')
|
||||||
const patch = [
|
const patch = [
|
||||||
{
|
{
|
||||||
op: PatchOp.REPLACE,
|
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 } })
|
const res = await this.http.rpcRequest<WithRevision<null>>({ method: 'db.patch', params: { patch } })
|
||||||
|
|
||||||
await this.updateOSProgress(initialProgress.size)
|
await this.updateOSProgress(initialProgress.size)
|
||||||
|
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
@@ -134,7 +134,7 @@ export class MockApiService extends ApiService {
|
|||||||
value: '3.1.0',
|
value: '3.1.0',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
op: PatchOp.REMOVE,
|
op: PatchOp.REPLACE,
|
||||||
path: '/server-info/update-progress',
|
path: '/server-info/update-progress',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user