mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
restyle action response
This commit is contained in:
committed by
Aiden McClelland
parent
ee44f49658
commit
260a48d434
@@ -832,6 +832,13 @@ export module Mock {
|
||||
},
|
||||
}
|
||||
|
||||
export const ActionResponse: RR.ExecutePackageActionRes = {
|
||||
message: 'Password changed successfully. If you lose your new password, you will be lost forever.',
|
||||
value: 'NewPassword1234!',
|
||||
copyable: true,
|
||||
qr: true,
|
||||
}
|
||||
|
||||
export const SshKeys: RR.GetSSHKeysRes = [
|
||||
{
|
||||
'created-at': new Date().toISOString(),
|
||||
|
||||
@@ -406,12 +406,7 @@ export class MockApiService extends ApiService {
|
||||
|
||||
async executePackageAction (params: RR.ExecutePackageActionReq): Promise<RR.ExecutePackageActionRes> {
|
||||
await pauseFor(2000)
|
||||
return {
|
||||
message: 'Action success!',
|
||||
value: 'new password',
|
||||
copyable: true,
|
||||
qr: false,
|
||||
}
|
||||
return Mock.ActionResponse
|
||||
}
|
||||
|
||||
async startPackageRaw (params: RR.StartPackageReq): Promise<RR.StartPackageRes> {
|
||||
|
||||
Reference in New Issue
Block a user