mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
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:
committed by
Aiden McClelland
parent
a20970fa17
commit
5cf7d1ff88
@@ -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 { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user