Skip to content

Commit

Permalink
Related-Bug: #1390392
Browse files Browse the repository at this point in the history
Added showDeviceOwner handlebars helper function which will return
whether to show device owner information in Configure > Networks > Ports
page

Change-Id: Ifc49505d34b770cc366331ab87901c7bbe98a7ef
  • Loading branch information
knagakiran committed Dec 9, 2014
1 parent 11034de commit 94f609e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webroot/js/handlebars-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,10 @@ Handlebars.registerHelper('showLISubnet', function(type) {
return type != null && type === 'L3' ? 'show' : 'hide';
});

Handlebars.registerHelper('showDeviceOwner', function(block) {
if(globalObj.webServerInfo.loggedInOrchestrationMode == 'vcenter')
return 'hide';
else
return 'show';
});

0 comments on commit 94f609e

Please sign in to comment.