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 2021/03/18 07:41:57 UTC

[cloudstack] branch 4.15 updated: ui: Fix route to ISO From VM's Info Card / Detail View (#4839)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.15 by this push:
     new 45e6800  ui: Fix route to ISO From VM's Info Card / Detail View (#4839)
45e6800 is described below

commit 45e68005013938ba5d62ade51027499c3ecaeb8a
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Thu Mar 18 13:11:32 2021 +0530

    ui: Fix route to ISO From VM's Info Card / Detail View (#4839)
    
    * ui: Correct route to ISO on Info Card
    
    * Change label based on template/iso
    
    Co-authored-by: Pearl Dsilva <pe...@shapeblue.com>
---
 ui/src/components/view/InfoCard.vue | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue
index 2229f8e..a1d87da 100644
--- a/ui/src/components/view/InfoCard.vue
+++ b/ui/src/components/view/InfoCard.vue
@@ -395,10 +395,15 @@
           </span>
         </div>
         <div class="resource-detail-item" v-if="resource.templateid">
-          <div class="resource-detail-item__label">{{ $t('label.templatename') }}</div>
+          <div class="resource-detail-item__label">{{ resource.isoid ? $t('label.iso') : $t('label.templatename') }}</div>
           <div class="resource-detail-item__details">
             <a-icon type="picture" />
-            <router-link :to="{ path: '/template/' + resource.templateid }">{{ resource.templatename || resource.templateid }} </router-link>
+            <div v-if="resource.isoid">
+              <router-link :to="{ path: '/iso/' + resource.isoid }">{{ resource.isoname || resource.isoid }} </router-link>
+            </div>
+            <div v-else>
+              <router-link :to="{ path: '/template/' + resource.templateid }">{{ resource.templatename || resource.templateid }} </router-link>
+            </div>
           </div>
         </div>
         <div class="resource-detail-item" v-if="resource.serviceofferingname && resource.serviceofferingid">