mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CS-15475: Fix missing 'add guest network' action from network list
Original patch by: Pranav Saxena <pranav.saxena@citrix.com> Reviewed by: Brian Federle <brian.federle@citrix.com>
This commit is contained in:
parent
3bbb694413
commit
b000b8047e
@ -197,7 +197,7 @@
|
||||
label: 'label.add.guest.network',
|
||||
|
||||
preFilter: function(args) {
|
||||
var basicZoneExists = false;
|
||||
var basicZoneExists = true; //Modifying the logic behind displaying the tabs depending on the networktype
|
||||
$.ajax({
|
||||
url: createURL("listZones"),
|
||||
dataType: "json",
|
||||
@ -206,8 +206,8 @@
|
||||
if(json.listzonesresponse.zone != null && json.listzonesresponse.zone.length > 0) {
|
||||
zoneObjs = json.listzonesresponse.zone;
|
||||
$(zoneObjs).each(function() {
|
||||
if(this.networktype == "Basic") {
|
||||
basicZoneExists = true;
|
||||
if(this.networktype == "Advanced") {
|
||||
basicZoneExists = false; // For any occurence of an Advanced zone with any combination of basic zone , the add guest network tab will be displayed
|
||||
return false; //break each loop
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user