CLOUDSTACK-8592: disable quota UI if quota service is disabled

This commit is contained in:
Abhinandan Prateek 2015-12-03 14:03:45 +05:30
parent 1e8dc864e9
commit e56c0a09fc
1 changed files with 6 additions and 1 deletions

View File

@ -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: {