mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: Show vm name along with password (#4821)
This commit is contained in:
parent
c2b378c62c
commit
f07e4d347e
@ -317,7 +317,7 @@ export default {
|
||||
message: 'message.action.instance.reset.password',
|
||||
dataView: true,
|
||||
show: (record) => { return ['Running', 'Stopped'].includes(record.state) && record.passwordenabled },
|
||||
response: (result) => { return result.virtualmachine && result.virtualmachine.password ? `Password of the VM is ${result.virtualmachine.password}` : null }
|
||||
response: (result) => { return result.virtualmachine && result.virtualmachine.password ? `The password of VM <b>${result.virtualmachine.displayname}</b> is <b>${result.virtualmachine.password}</b>` : null }
|
||||
},
|
||||
{
|
||||
api: 'resetSSHKeyForVirtualMachine',
|
||||
|
||||
@ -255,7 +255,7 @@ export default {
|
||||
successMethod: () => {
|
||||
this.parentFetchData()
|
||||
},
|
||||
response: (result) => { return result.virtualmachine && result.virtualmachine.password ? `Password of the VM is ${result.virtualmachine.password}` : null }
|
||||
response: (result) => { return result.virtualmachine && result.virtualmachine.password ? `The password of VM <b>${result.virtualmachine.displayname}</b> is <b>${result.virtualmachine.password}</b>` : null }
|
||||
})
|
||||
this.closeAction()
|
||||
}).catch(error => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user