Update tabFilter for egress rules

This commit is contained in:
Brian Federle 2012-11-05 15:20:42 -08:00
parent c3f1a694ae
commit 7707b3b4b3
1 changed files with 7 additions and 1 deletions

View File

@ -762,6 +762,7 @@
tabFilter: function(args) {
var networkOfferingHavingELB = false;
var hasNetworkACL = false;
var isVPC = false;
$.ajax({
url: createURL("listNetworkOfferings&id=" + args.context.networks[0].networkofferingid),
@ -770,6 +771,10 @@
success: function(json) {
var networkoffering = json.listnetworkofferingsresponse.networkoffering[0];
if (networkoffering.forvpc) {
isVPC = true;
}
$(networkoffering.service).each(function(){
var thisService = this;
@ -792,7 +797,7 @@
hiddenTabs.push("addloadBalancer");
}
if (!hasNetworkACL) {
if (!hasNetworkACL || isVPC) {
hiddenTabs.push('egressRules');
}
@ -3414,6 +3419,7 @@
}
})
},
egressRules: {
title: 'label.egress.rule',
custom: function(args) {