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 2020/06/13 02:19:00 UTC

[cloudstack-primate] branch master updated: compute: Add unmanage VM button (#330)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 689c43b  compute: Add unmanage VM button (#330)
689c43b is described below

commit 689c43bb30d32bed1e6f85bcdcf2da05b9221221
Author: Nicolas Vazquez <ni...@gmail.com>
AuthorDate: Fri Jun 12 23:18:53 2020 -0300

    compute: Add unmanage VM button (#330)
    
    UI changes for https://github.com/apache/cloudstack/pull/4103
    
    Co-authored-by: Rohit Yadav <ro...@shapeblue.com>
---
 src/config/section/compute.js | 8 ++++++++
 src/locales/en.json           | 1 +
 2 files changed, 9 insertions(+)

diff --git a/src/config/section/compute.js b/src/config/section/compute.js
index 6257f0c..2ed0eae 100644
--- a/src/config/section/compute.js
+++ b/src/config/section/compute.js
@@ -323,6 +323,14 @@ export default {
           show: (record, store) => { return ['Destroyed'].includes(record.state) && store.features.allowuserexpungerecovervm }
         },
         {
+          api: 'unmanageVirtualMachine',
+          icon: 'disconnect',
+          label: 'label.action.unmanage.virtualmachine',
+          dataView: true,
+          groupAction: true,
+          show: (record) => { return ['Running', 'Stopped'].includes(record.state) && record.hypervisor === 'VMware' }
+        },
+        {
           api: 'expungeVirtualMachine',
           icon: 'delete',
           label: 'label.action.expunge.instance',
diff --git a/src/locales/en.json b/src/locales/en.json
index 48dc6d4..6ad7e92 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -242,6 +242,7 @@
 "label.action.take.snapshot.processing": "Taking Snapshot....",
 "label.action.unmanage.cluster": "Unmanage Cluster",
 "label.action.unmanage.cluster.processing": "Unmanaging Cluster....",
+"label.action.unmanage.virtualmachine": "Unmanage VM",
 "label.action.update.offering.access": "Update Offering Access",
 "label.action.update.os.preference": "Update OS Preference",
 "label.action.update.os.preference.processing": "Updating OS Preference....",