mirror of https://github.com/apache/cloudstack.git
cloudStack 3.0 new UI - account page - consolidate Volume Limits to Edit action.
This commit is contained in:
parent
e249f6fc4c
commit
465bd3636d
|
|
@ -219,7 +219,17 @@
|
|||
selectedAccountResourceLimits = json.updateresourcelimitresponse.resourcelimit;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: createURL("updateResourceLimit&resourceType=2&max=" + todb(args.data.volumeLimits) + "&account=" + accountObj.name + "&domainid=" + accountObj.domainid),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
selectedAccountResourceLimits = json.updateresourcelimitresponse.resourcelimit;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -293,8 +303,23 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
volumeLimits: {
|
||||
label: 'Volume limits',
|
||||
isEditable: true,
|
||||
converter: function(args) {
|
||||
if (selectedAccountResourceLimits != null) {
|
||||
for (var i = 0; i < selectedAccountResourceLimits.length; i++) {
|
||||
if(selectedAccountResourceLimits[i].resourcetype == "2") {
|
||||
return selectedAccountResourceLimits[i].max;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue