mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-19 12:03:50 +01:00
bug 12534: cloudStack 3.0 new UI - zone chart - management - details - remove GuestCIDR field since it's no longer under a zone.
This commit is contained in:
parent
20e9f40a53
commit
27ff5e7b51
@ -292,6 +292,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
'management': {
|
'management': {
|
||||||
detailView: {
|
detailView: {
|
||||||
viewAll: { path: '_zone.pods', label: 'Pods' },
|
viewAll: { path: '_zone.pods', label: 'Pods' },
|
||||||
@ -304,16 +305,8 @@
|
|||||||
array1.push("&dns1=" + todb(args.data.dns1));
|
array1.push("&dns1=" + todb(args.data.dns1));
|
||||||
array1.push("&dns2=" + todb(args.data.dns2)); //dns2 can be empty ("") when passed to API
|
array1.push("&dns2=" + todb(args.data.dns2)); //dns2 can be empty ("") when passed to API
|
||||||
array1.push("&internaldns1=" + todb(args.data.internaldns1));
|
array1.push("&internaldns1=" + todb(args.data.internaldns1));
|
||||||
array1.push("&internaldns2=" + todb(args.data.internaldns2)); //internaldns2 can be empty ("") when passed to API
|
array1.push("&internaldns2=" + todb(args.data.internaldns2)); //internaldns2 can be empty ("") when passed to API
|
||||||
|
array1.push("&domain=" + todb(args.data.domain));
|
||||||
if(args.context.zones[0].networktype == "Advanced") { //remove this line after Brian fixes it to include $form in args
|
|
||||||
//if(args.$form.find('.form-item[rel=guestcidraddress]').css("display") != "none") { //commented out until Brian fixes it to include $form in args
|
|
||||||
array1.push("&guestcidraddress=" + todb(args.data.guestcidraddress));
|
|
||||||
//} //commented out until Brian fixes it to include $form in args
|
|
||||||
} //remove this line after Brian fixes it to include $form in args
|
|
||||||
|
|
||||||
array1.push("&domain=" + todb(args.data.domain));
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("updateZone&id=" + args.context.zones[0].id + array1.join("")),
|
url: createURL("updateZone&id=" + args.context.zones[0].id + array1.join("")),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@ -328,13 +321,7 @@
|
|||||||
},
|
},
|
||||||
tabs: {
|
tabs: {
|
||||||
details: {
|
details: {
|
||||||
title: 'Details',
|
title: 'Details',
|
||||||
preFilter: function(args) {
|
|
||||||
var hiddenFields = [];
|
|
||||||
if(selectedZoneObj.networktype == "Basic")
|
|
||||||
hiddenFields.push("guestcidraddress");
|
|
||||||
return hiddenFields;
|
|
||||||
},
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: { label: 'Zone', isEditable: true }
|
name: { label: 'Zone', isEditable: true }
|
||||||
@ -354,8 +341,7 @@
|
|||||||
domain: {
|
domain: {
|
||||||
label: 'Network domain',
|
label: 'Network domain',
|
||||||
isEditable: true
|
isEditable: true
|
||||||
},
|
}
|
||||||
guestcidraddress: { label: 'Guest CIDR Address', isEditable: true } //only advanced zones have CIDR Address
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user