bug 13754

Display project routers in system list view

status 13754: resolved fixed
reviewed-by: jessica
This commit is contained in:
Brian Federle 2012-02-21 14:05:12 -08:00
parent 1c48ceb138
commit 841ddc351f
1 changed files with 23 additions and 1 deletions

View File

@ -1857,6 +1857,20 @@
});
}
});
// Get project routers
$.ajax({
url: createURL("listRouters&zoneid=" + selectedZoneObj.id + "&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("") + "&projectid=-1"),
dataType: 'json',
async: true,
success: function(json) {
var items = json.listroutersresponse.router;
args.response.success({
actionFilter: routerActionfilter,
data: items
});
}
});
},
detailView: {
name: 'Virtual applicance details',
@ -2121,12 +2135,20 @@
tabs: {
details: {
title: 'label.details',
preFilter: function(args) {
if (!args.context.routers[0].project)
return ['project', 'projectid'];
return [];
},
fields: [
{
name: { label: 'label.name' }
name: { label: 'label.name' },
project: { label: 'label.project' }
},
{
id: { label: 'label.id' },
projectid: { label: 'label.project.id' },
state: { label: 'label.state' },
publicip: { label: 'label.public.ip' },
guestipaddress: { label: 'label.guest.ip' },