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

Commit b4d3f56

Browse files
Allow renaming cluster, host, and storage (#608)
* Allow renaming cluster, host, and storage CloudStack PR: apache/cloudstack#4165 * change clustername.label to Cluster Name
1 parent 5eb3ede commit b4d3f56

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/config/section/infra/clusters.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ export default {
5858
popup: true,
5959
component: () => import('@/views/infra/ClusterAdd.vue')
6060
},
61+
{
62+
api: 'updateCluster',
63+
icon: 'edit',
64+
label: 'label.edit',
65+
dataView: true,
66+
args: ['clustername']
67+
},
6168
{
6269
api: 'updateCluster',
6370
icon: 'play-circle',

src/config/section/infra/hosts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default {
5959
icon: 'edit',
6060
label: 'label.edit',
6161
dataView: true,
62-
args: ['hosttags', 'oscategoryid'],
62+
args: ['name', 'hosttags', 'oscategoryid'],
6363
mapping: {
6464
oscategoryid: {
6565
api: 'listOsCategories'

src/config/section/infra/primaryStorages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default {
6161
icon: 'edit',
6262
label: 'label.edit',
6363
dataView: true,
64-
args: ['tags', 'capacitybytes', 'capacityiops']
64+
args: ['name', 'tags', 'capacitybytes', 'capacityiops']
6565
},
6666
{
6767
api: 'enableStorageMaintenance',

src/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@
549549
"label.cluster.name": "Cluster Name",
550550
"label.cluster.size": "Cluster size",
551551
"label.clusterid": "Cluster",
552-
"label.clustername": "Cluster",
552+
"label.clustername": "Cluster Name",
553553
"label.clusternamelabel": "Cluster Name",
554554
"label.clusters": "Clusters",
555555
"label.clustertype": "Cluster Type",

0 commit comments

Comments
 (0)