Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
compute: Add unmanage VM button (#330)
Browse files Browse the repository at this point in the history
UI changes for apache/cloudstack#4103

Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
  • Loading branch information
2 people authored and ustcweizhou committed Jan 19, 2021
1 parent 89601de commit 2740f3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/config/section/compute.js
Expand Up @@ -322,6 +322,14 @@ export default {
dataView: true,
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',
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Expand Up @@ -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....",
Expand Down

0 comments on commit 2740f3e

Please sign in to comment.