UI/feature/enable disable lan (#192)

* ui: skip startup notifications in mocks

* ui: enable-disable lan toggle in ui

* ui: remove this.lanAddress for this.app.lanAddress
This commit is contained in:
Aaron Greenspan
2021-02-12 11:36:53 -07:00
committed by Aiden McClelland
parent a20970fa17
commit 5cf7d1ff88
14 changed files with 194 additions and 57 deletions

View File

@@ -41,6 +41,18 @@ export class MockApiService extends ApiService {
}
}
testCounter = 0
async testConnection (): Promise<true> {
console.log('testing connection')
this.testCounter ++
await pauseFor(1000)
if (this.testCounter > 5) {
return true
} else {
throw new Error('Not Connected')
}
}
async ejectExternalDisk (): Promise<Unit> {
await pauseFor(2000)
return { }
@@ -144,6 +156,10 @@ export class MockApiService extends ApiService {
return mockAppDependentBreakages
}
async toggleAppLAN (appId: string, toggle: 'enable' | 'disable'): Promise<Unit> {
return { }
}
async restartApp (appId: string): Promise<Unit> {
return { }
}