CLOUDSTACK-2678: portable IP ranges - regions detailView - add viewAll path to Portable IP Ranges listView.

This commit is contained in:
Jessica Wang 2013-05-24 10:33:28 -07:00
parent 6975f6bac6
commit 3d16e82547

View File

@ -116,7 +116,10 @@
}, },
detailView: { detailView: {
name: 'Region details', name: 'Region details',
viewAll: { path: 'regions.GSLB', label: 'GSLB' }, viewAll: [
{ path: 'regions.GSLB', label: 'GSLB' },
{ path: 'regions.portableIpRanges', label: 'Portable IP' }
],
actions: { actions: {
edit: { edit: {
label: 'label.edit.region', label: 'label.edit.region',
@ -451,8 +454,40 @@
} }
} }
}, },
lbUnderGSLB: { portableIpRanges: {
id: 'portableIpRanges',
type: 'select',
title: 'Portable IP Ranges',
listView: {
id: 'portableIpRanges',
label: 'Portable IP Ranges',
fields: {
name: { label: 'label.name' },
gslbdomainname: { label: 'GSLB Domain Name' },
gslblbmethod: { label: 'Algorithm' }
},
dataProvider: function(args) {
$.ajax({
url: createURL('listPortableIpRanges'),
data: {
regionid: args.context.regions[0].id
},
success: function(json) {
var items = json.listportableipresponse.portableip;
args.response.success({
data: items
});
},
error: function(json) {
args.response.error(parseXMLHttpResponse(json));
}
});
}
}
},
lbUnderGSLB: {
id: 'lbUnderGSLB', id: 'lbUnderGSLB',
type: 'select', type: 'select',
title: 'assigned load balancing', title: 'assigned load balancing',