This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.15 by this push:
new a4448b4 ui: Notify users of new VM password on resetting VM's SSH key
(#5153)
a4448b4 is described below
commit a4448b4409bcfc002526f629b1f06c71bf882683
Author: Pearl Dsilva <[email protected]>
AuthorDate: Thu Jun 24 19:22:55 2021 +0530
ui: Notify users of new VM password on resetting VM's SSH key (#5153)
---
ui/src/config/section/compute.js | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js
index 48e9a10..a9ffbe0 100644
--- a/ui/src/config/section/compute.js
+++ b/ui/src/config/section/compute.js
@@ -146,7 +146,6 @@ export default {
}
},
successMethod: (obj, result) => {
- console.log('here')
const vm = result.jobresult.virtualmachine || {}
if (result.jobstatus === 1 && vm.password) {
const name = vm.displayname || vm.name || vm.id
@@ -356,6 +355,17 @@ export default {
domainid: {
value: (record) => { return record.domainid }
}
+ },
+ successMethod: (obj, result) => {
+ const vm = result.jobresult.virtualmachine || {}
+ if (result.jobstatus === 1 && vm.password) {
+ const name = vm.displayname || vm.name || vm.id
+ obj.$notification.success({
+ message: `${obj.$t('label.reset.ssh.key.pair.on.vm')}: ` +
name,
+ description: `${obj.$t('label.password.reset.confirm')}: ` +
vm.password,
+ duration: 0
+ })
+ }
}
},
{