full precision on tx details modal

This commit is contained in:
Ivan Socolsky 2016-06-23 18:46:48 -03:00
commit d477effd07
No known key found for this signature in database
GPG key ID: FAECE6A05FAA4F56
4 changed files with 14 additions and 7 deletions

View file

@ -20,12 +20,15 @@ angular.module('copayApp.services')
root.walletClients = {};
root.Utils = bwcService.getUtils();
root.formatAmount = function(amount) {
root.formatAmount = function(amount, fullPrecision) {
var config = configService.getSync().wallet.settings;
if (config.unitCode == 'sat') return amount;
//TODO : now only works for english, specify opts to change thousand separator and decimal separator
return this.Utils.formatAmount(amount, config.unitCode);
var opts = {
fullPrecision: !!fullPrecision
};
return this.Utils.formatAmount(amount, config.unitCode, opts);
};
root._setFocus = function(walletId, cb) {