rhtyd commented on a change in pull request #272: view: role based routing for 
domain, zone in info
URL: https://github.com/apache/cloudstack-primate/pull/272#discussion_r410045626
 
 

 ##########
 File path: src/components/view/InfoCard.vue
 ##########
 @@ -419,7 +419,7 @@
           <div class="resource-detail-item__label">{{ $t('zone') }}</div>
           <div class="resource-detail-item__details">
             <a-icon type="global" />
-            <router-link v-if="!resource.zoneid.includes(',')" :to="{ path: 
'/zone/' + resource.zoneid }">{{ resource.zonename || resource.zoneid 
}}</router-link>
+            <router-link v-if="!resource.zoneid.includes(',') && 
this.isAdmin()" :to="{ path: '/zone/' + resource.zoneid }">{{ resource.zonename 
|| resource.zoneid }}</router-link>
 
 Review comment:
   @shwstppr search and see examples on using $router.resolve to check if the 
link is routable; something similar perhaps?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to