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/08/26 09:35:16 UTC

[cloudstack-primate] branch master updated: Allow renaming cluster, host, and storage (#608)

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 b4d3f56  Allow renaming cluster, host, and storage (#608)
b4d3f56 is described below

commit b4d3f569a0e461bbe516a744282cd0854666f2e3
Author: Gabriel Beims Bräscher <ga...@apache.org>
AuthorDate: Wed Aug 26 06:35:05 2020 -0300

    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
---
 src/config/section/infra/clusters.js        | 7 +++++++
 src/config/section/infra/hosts.js           | 2 +-
 src/config/section/infra/primaryStorages.js | 2 +-
 src/locales/en.json                         | 2 +-
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/config/section/infra/clusters.js b/src/config/section/infra/clusters.js
index 8b42184..96c3c0a 100644
--- a/src/config/section/infra/clusters.js
+++ b/src/config/section/infra/clusters.js
@@ -60,6 +60,13 @@ export default {
     },
     {
       api: 'updateCluster',
+      icon: 'edit',
+      label: 'label.edit',
+      dataView: true,
+      args: ['clustername']
+    },
+    {
+      api: 'updateCluster',
       icon: 'play-circle',
       label: 'label.action.enable.cluster',
       message: 'message.action.enable.cluster',
diff --git a/src/config/section/infra/hosts.js b/src/config/section/infra/hosts.js
index 39b2d3a..33ce6b7 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 8754c35..a443ce5 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',
diff --git a/src/locales/en.json b/src/locales/en.json
index c185ed1..f0ccde0 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",