From a49b6edf1f97afde4ce95f17d97098293cb08a04 Mon Sep 17 00:00:00 2001 From: Gabriel Brascher Date: Sat, 22 Aug 2020 12:00:05 -0300 Subject: [PATCH 1/2] Allow renaming cluster, host, and storage CloudStack PR: https://github.com/apache/cloudstack/pull/4165 --- src/config/section/infra/clusters.js | 7 +++++++ src/config/section/infra/hosts.js | 2 +- src/config/section/infra/primaryStorages.js | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/config/section/infra/clusters.js b/src/config/section/infra/clusters.js index 8b4218450..96c3c0ad9 100644 --- a/src/config/section/infra/clusters.js +++ b/src/config/section/infra/clusters.js @@ -58,6 +58,13 @@ export default { popup: true, component: () => import('@/views/infra/ClusterAdd.vue') }, + { + api: 'updateCluster', + icon: 'edit', + label: 'label.edit', + dataView: true, + args: ['clustername'] + }, { api: 'updateCluster', icon: 'play-circle', diff --git a/src/config/section/infra/hosts.js b/src/config/section/infra/hosts.js index 06e690baa..9e46876b0 100644 --- a/src/config/section/infra/hosts.js +++ b/src/config/section/infra/hosts.js @@ -59,7 +59,7 @@ export default { icon: 'edit', label: 'label.edit', dataView: true, - args: ['hosttags', 'oscategoryid'], + args: ['name', 'hosttags', 'oscategoryid'], mapping: { oscategoryid: { api: 'listOsCategories' diff --git a/src/config/section/infra/primaryStorages.js b/src/config/section/infra/primaryStorages.js index 8754c358f..a443ce584 100644 --- a/src/config/section/infra/primaryStorages.js +++ b/src/config/section/infra/primaryStorages.js @@ -61,7 +61,7 @@ export default { icon: 'edit', label: 'label.edit', dataView: true, - args: ['tags', 'capacitybytes', 'capacityiops'] + args: ['name', 'tags', 'capacitybytes', 'capacityiops'] }, { api: 'enableStorageMaintenance', From a0418a3f48b7ac819f2c506f4cbdb1b1005fb20a Mon Sep 17 00:00:00 2001 From: Gabriel Brascher Date: Mon, 24 Aug 2020 07:48:39 -0300 Subject: [PATCH 2/2] change clustername.label to Cluster Name --- src/locales/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/en.json b/src/locales/en.json index 00dc0486b..23ab50909 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -549,7 +549,7 @@ "label.cluster.name": "Cluster Name", "label.cluster.size": "Cluster size", "label.clusterid": "Cluster", -"label.clustername": "Cluster", +"label.clustername": "Cluster Name", "label.clusternamelabel": "Cluster Name", "label.clusters": "Clusters", "label.clustertype": "Cluster Type",