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/10/05 11:54:28 UTC

[cloudstack-primate] branch master updated: addprimarystorage: Filtering unique storage tags (#787)

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 8d6ff6f  addprimarystorage: Filtering unique storage tags (#787)
8d6ff6f is described below

commit 8d6ff6fdef7c3c36359cb10c79bef91f2e62f533
Author: davidjumani <dj...@gmail.com>
AuthorDate: Mon Oct 5 17:24:22 2020 +0530

    addprimarystorage: Filtering unique storage tags (#787)
---
 src/views/infra/AddPrimaryStorage.vue | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/views/infra/AddPrimaryStorage.vue b/src/views/infra/AddPrimaryStorage.vue
index 07cf530..93e2066 100644
--- a/src/views/infra/AddPrimaryStorage.vue
+++ b/src/views/infra/AddPrimaryStorage.vue
@@ -296,6 +296,8 @@
 
 <script>
 import { api } from '@/api'
+import _ from 'lodash'
+
 export default {
   name: 'AddPrimaryStorage',
   props: {
@@ -410,6 +412,9 @@ export default {
       this.loading = true
       api('listStorageTags').then(json => {
         this.storageTags = json.liststoragetagsresponse.storagetag || []
+        if (this.storageTags) {
+          this.storageTags = _.uniqBy(this.storageTags, 'name')
+        }
       }).finally(() => {
         this.loading = false
       })