refactor: extract loading status to shared library (#2282)

* refactor: extract loading status to shared library

* chore: remove inline style
This commit is contained in:
Alex Inkin
2023-05-26 00:04:47 +04:00
committed by Aiden McClelland
parent 52c0bb5302
commit 3804a46f3b
27 changed files with 320 additions and 218 deletions

View File

@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core'
import { Log, pauseFor } from '@start9labs/shared'
import { pauseFor, Log, getSetupStatusMock } from '@start9labs/shared'
import { ApiService } from './embassy-api.service'
import {
Operation,
@@ -999,6 +999,10 @@ export class MockApiService extends ApiService {
return '4120e092-05ab-4de2-9fbd-c3f1f4b1df9e' // no significance, randomly generated
}
async getSetupStatus() {
return getSetupStatusMock()
}
private async updateProgress(id: string): Promise<void> {
const progress = { ...PROGRESS }
const phases = [