mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CS-16732: Show virtual router actions on VPC detail view
This commit is contained in:
parent
c91bde7d4b
commit
a7138d9665
@ -4068,6 +4068,7 @@
|
||||
var item = json.listroutersresponse.router[0];
|
||||
|
||||
args.response.success({
|
||||
actionFilter: cloudStack.sections.system.routerActionFilter,
|
||||
data:item
|
||||
});
|
||||
}
|
||||
|
||||
@ -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 = [];
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user