You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/06/24 13:53:16 UTC
[cloudstack] branch 4.15 updated: ui: Notify users of new VM
password on resetting VM's SSH key (#5153)
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 <pe...@gmail.com>
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
+ })
+ }
}
},
{