mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
frontend support for setting and changing hostname
This commit is contained in:
@@ -447,6 +447,21 @@ export class MockApiService extends ApiService {
|
||||
return null
|
||||
}
|
||||
|
||||
async setHostname(params: { hostname: string }): Promise<null> {
|
||||
await pauseFor(1000)
|
||||
|
||||
const patch = [
|
||||
{
|
||||
op: PatchOp.REPLACE,
|
||||
path: '/serverInfo/hostname',
|
||||
value: params.hostname,
|
||||
},
|
||||
]
|
||||
this.mockRevision(patch)
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
async setKeyboard(params: FullKeyboard): Promise<null> {
|
||||
await pauseFor(1000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user