mirror of https://github.com/apache/cloudstack.git
bug 13574: Hide 'max projects' from resources
status 13574: resolved fixed
This commit is contained in:
parent
aa9d250280
commit
3198ef4eb1
|
|
@ -51,9 +51,16 @@
|
|||
projectid: projectID
|
||||
},
|
||||
success: function(json) {
|
||||
var resourceLimits = $.grep(
|
||||
json.listresourcelimitsresponse.resourcelimit,
|
||||
function(resourceLimit) {
|
||||
return resourceLimit.resourcetype != 5;
|
||||
}
|
||||
);
|
||||
|
||||
args.response.success({
|
||||
data: $.map(
|
||||
json.listresourcelimitsresponse.resourcelimit,
|
||||
resourceLimits,
|
||||
function(resource) {
|
||||
var resourceMap = {
|
||||
0: {
|
||||
|
|
@ -75,10 +82,6 @@
|
|||
4: {
|
||||
id: 'template',
|
||||
label: 'Max. Templates'
|
||||
},
|
||||
5: {
|
||||
id: 'project',
|
||||
label: 'Max. Projects'
|
||||
}
|
||||
};
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue