nitin-maharana commented on a change in pull request #2306: CLOUDSTACK-10129: 
Allow navigation from VRs to network, instances, owners etc.
URL: https://github.com/apache/cloudstack/pull/2306#discussion_r148769957
 
 

 ##########
 File path: ui/scripts/system.js
 ##########
 @@ -31,6 +31,7 @@
 
         if (router.projectid) routerType = _l('label.project');
         if (router.vpcid) routerType = _l('label.vpc');
+        if ("isredundantrouter" in router && router.isredundantrouter) 
routerType = routerType + " (" + router.redundantstate + ")";
 
 Review comment:
   I'm also not sure. Because in all three statements we set a value to 
routerType variable according to the condition. If we don't overwrite the 
variable in the above order, then I think we can put them in if..else condition.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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