ui: preload bold, remove getdots from dom after load

This commit is contained in:
Aaron Greenspan
2021-01-22 10:28:07 -07:00
committed by Aiden McClelland
parent d2a70a782b
commit 53db8fc4ec
4 changed files with 16 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ import { mockApiAppAvailableFull, mockApiAppAvailableVersionInfo, mockApiAppInst
//@TODO consider moving to test folders.
@Injectable()
export class MockApiService extends ApiService {
welcomeAck = false
welcomeAck = true
constructor (
private readonly appModel: AppModel,
@@ -409,8 +409,8 @@ const mockApiServer: () => ReqRes.GetServerRes = () => ({
versionLatest: '0.2.9',
status: ServerStatus.RUNNING,
alternativeRegistryUrl: 'beta-registry.start9labs.com',
welcomeAck: false,
autoCheckUpdates: true,
welcomeAck: true,
autoCheckUpdates: false,
specs: {
'Tor Address': 'nfsnjkcnaskjnlkasnfahj7dh23fdnieqwjdnhjewbfijendiueqwbd.onion',
'CPU': 'Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz',

View File

@@ -30,14 +30,16 @@ export class StartupAlertsNotifier {
await this.checks
.filter(c => !c.hasRun && c.shouldRun(server))
.reduce(async (previousDisplay, c) => {
let checkRes
let checkRes: any
try {
checkRes = await c.check(server)
} catch (e) {
return console.error(`Exception in ${c.name} check:`, e)
console.error(`Exception in ${c.name} check:`, e)
return true
}
c.hasRun = true
const displayRes = await previousDisplay
if (!checkRes) return true
if (displayRes) return c.display(checkRes)
}, Promise.resolve(true))