From 419387ac7adcdfd2ce8e37a83f0896a9a43299d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Beims=20Br=C3=A4scher?= Date: Wed, 26 Aug 2020 06:35:05 -0300 Subject: [PATCH] Allow renaming cluster, host, and storage (#608) * Allow renaming cluster, host, and storage CloudStack PR: https://github.com/apache/cloudstack/pull/4165 * change clustername.label to Cluster Name Signed-off-by: Rohit Yadav --- ui/src/config/section/infra/clusters.js | 7 +++++++ ui/src/config/section/infra/hosts.js | 2 +- ui/src/config/section/infra/primaryStorages.js | 2 +- ui/src/locales/en.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ui/src/config/section/infra/clusters.js b/ui/src/config/section/infra/clusters.js index 8b421845009..96c3c0ad92c 100644 --- a/ui/src/config/section/infra/clusters.js +++ b/ui/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/ui/src/config/section/infra/hosts.js b/ui/src/config/section/infra/hosts.js index 39b2d3a1668..33ce6b77925 100644 --- a/ui/src/config/section/infra/hosts.js +++ b/ui/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/ui/src/config/section/infra/primaryStorages.js b/ui/src/config/section/infra/primaryStorages.js index 8754c358f09..a443ce584d6 100644 --- a/ui/src/config/section/infra/primaryStorages.js +++ b/ui/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', diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json index c185ed119f9..f0ccde0c620 100644 --- a/ui/src/locales/en.json +++ b/ui/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",