restyle action response

This commit is contained in:
Matt Hill
2021-09-27 09:50:05 -06:00
committed by Aiden McClelland
parent ee44f49658
commit 260a48d434
8 changed files with 31 additions and 54 deletions

View File

@@ -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(),

View File

@@ -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> {