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 <[email protected]>
AuthorDate: Thu Jun 25 11:23:56 2020 +0530

    infocard: show project for resources having a projectid
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 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">

Reply via email to