mirror of https://github.com/apache/cloudstack.git
quota: minor credits ui fixes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
fc95ece6cb
commit
57bc5cb904
|
|
@ -142,7 +142,7 @@ public class QuotaResponseBuilderImpl implements QuotaResponseBuilder {
|
|||
@Override
|
||||
public QuotaStatementResponse createQuotaStatementResponse(final List<QuotaUsageVO> quotaUsage) {
|
||||
if (quotaUsage == null || quotaUsage.size() == 0) {
|
||||
throw new InvalidParameterValueException("There is no uage data for period mentioned.");
|
||||
throw new InvalidParameterValueException("There is no usage data found for period mentioned.");
|
||||
}
|
||||
final short opendb = TransactionLegacy.currentTxn().getDatabaseId();
|
||||
TransactionLegacy.open(TransactionLegacy.USAGE_DB).close();
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ var g_quotaCurrency = '';
|
|||
},
|
||||
success: function(json) {
|
||||
if (json.hasOwnProperty('quotabalanceresponse') && json.quotabalanceresponse.hasOwnProperty('balance')) {
|
||||
$('<p class="quota-bold">').html('Current Quota Balance of "' + account + '": ' + g_quotaCurrency + json.quotabalanceresponse.balance.endquota).appendTo(creditStatement);
|
||||
$('<p class="quota-bold">').html('Current Quota Balance of "' + account + '": ' + g_quotaCurrency + json.quotabalanceresponse.balance.startquota).appendTo(creditStatement);
|
||||
}
|
||||
},
|
||||
error: function(json) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue