CS-16732: Show virtual router actions on VPC detail view

This commit is contained in:
Brian Federle 2012-11-05 14:52:19 -08:00
parent c91bde7d4b
commit a7138d9665
3 changed files with 22 additions and 2 deletions

View File

@ -4068,6 +4068,7 @@
var item = json.listroutersresponse.router[0];
args.response.success({
actionFilter: cloudStack.sections.system.routerActionFilter,
data:item
});
}

View File

@ -10353,7 +10353,7 @@
return allowedActions;
}
var routerActionfilter = function(args) {
var routerActionfilter = cloudStack.sections.system.routerActionFilter = function(args) {
var jsonObj = args.context.item;
var allowedActions = [];

View File

@ -251,8 +251,27 @@
routerDetailView: function() {
return {
title: 'VPC router details',
updateContext: function(args) {
var router;
$.ajax({
url: createURL("listRouters&listAll=true&vpcid=" +args.context.vpc[0].id),
dataType: "json",
async: false,
success: function(json) {
router = json.listroutersresponse.router[0];
}
});
return {
routers: [router]
};
},
actions: cloudStack.sections.system.subsections.virtualRouters
.listView.detailView.actions,
tabs: {
routerDetails: cloudStack.sections.network.sections.vpc.listView.detailView.tabs.router
routerDetails: cloudStack.sections.network.sections.vpc
.listView.detailView.tabs.router
}
};
},