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/06/25 05:54:32 UTC

[cloudstack-primate] 02/02: infocard: show project for resources having a projectid

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

commit 6fc4c5c70420b323411f015732ca0305935b1582
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Thu Jun 25 11:23:56 2020 +0530

    infocard: show project for resources having a projectid
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 src/components/view/InfoCard.vue | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/components/view/InfoCard.vue b/src/components/view/InfoCard.vue
index 722a89b..6df6c4d 100644
--- a/src/components/view/InfoCard.vue
+++ b/src/components/view/InfoCard.vue
@@ -285,6 +285,13 @@
             <span v-else>{{ resource.ipaddress }}</span>
           </div>
         </div>
+        <div class="resource-detail-item" v-if="resource.projectid">
+          <div class="resource-detail-item__label">{{ $t('label.project') }}</div>
+          <div class="resource-detail-item__details">
+            <a-icon type="project" />
+            <router-link :to="{ path: '/project/' + resource.projectid }">{{ resource.project || resource.projectname || resource.projectid }}</router-link>
+          </div>
+        </div>
 
         <div class="resource-detail-item">
           <slot name="details">