mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8592: disable quota UI if quota service is disabled
This commit is contained in:
parent
1e8dc864e9
commit
e56c0a09fc
|
|
@ -25,7 +25,12 @@
|
|||
id: 'quota',
|
||||
title: 'Quota',
|
||||
preFilter: function(args) {
|
||||
return true;
|
||||
var retval = $.ajax({
|
||||
url: createURL("listConfigurations&name=quota.enable.service"),
|
||||
async: false
|
||||
});
|
||||
var json = JSON.parse(retval.responseText);
|
||||
return json.listconfigurationsresponse.configuration[0].value == 'true';
|
||||
},
|
||||
showOnNavigation: true,
|
||||
sectionSelect: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue