diff --git a/client/tomcatconf/commands.properties.in b/client/tomcatconf/commands.properties.in index 03b1918312d..161a0cce7d7 100644 --- a/client/tomcatconf/commands.properties.in +++ b/client/tomcatconf/commands.properties.in @@ -785,13 +785,11 @@ addGloboDnsHost=1 ### Quota Service quotaTariffList=15 quotaTariffUpdate=7 - -quotaRefresh=15 -quotaCredits=15 quotaStatement=15 +quotaCredits=1 quotaBalance=15 +quotaRefresh=7 quotaEmailTemplateUpdate=15 quotaEmailTemplateDelete=15 quotaEmailTemplateAdd=15 -quotaReports=15 diff --git a/ui/plugins/quota/quota.js b/ui/plugins/quota/quota.js index d60f9728d7a..923c761e72a 100644 --- a/ui/plugins/quota/quota.js +++ b/ui/plugins/quota/quota.js @@ -14,6 +14,8 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. + +var g_quotaCurrency = ''; (function (cloudStack) { cloudStack.plugins.quota = function(plugin) { @@ -64,6 +66,22 @@ return true; }, show: function() { + $.ajax({ + url: createURL('listConfigurations'), + data: { + name: 'quota.currency.symbol' + }, + success: function(json) { + if (json.hasOwnProperty('listconfigurationsresponse') && json.listconfigurationsresponse.hasOwnProperty('configuration')) { + console.log(json.listconfigurationsresponse); + g_quotaCurrency = json.listconfigurationsresponse.configuration[0].value + ' '; + } + }, + error: function(data) { + // FIXME: what to do on error? + } + }); + var $quotaView = $('
'); var $toolbar = $('
'); var $tabs = $('