Merge pull request #3429 from cmgustavo/updates/angular-bwc-117

Fixes join wallet. Updates angular-bwc
This commit is contained in:
Matias Alejo Garcia 2015-11-11 10:55:13 -03:00
commit 6087541a6d
2 changed files with 4 additions and 6 deletions

View file

@ -11,15 +11,13 @@ angular.module('copayApp.services')
root.focusedClient = null;
root.walletClients = {};
root.getUtils = function() {
return bwcService.getUtils();
};
root.Utils = bwcService.getUtils();
root.formatAmount = function(amount) {
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.getUtils().formatAmount(amount, config.unitCode);
return this.Utils.formatAmount(amount, config.unitCode);
};
root._setFocus = function(walletId, cb) {
@ -274,7 +272,7 @@ angular.module('copayApp.services')
$log.debug('Joining Wallet:', opts);
try {
var walletData = this.getUtils().fromSecret(opts.secret);
var walletData = bwcService.parseSecret(opts.secret);
// check if exist
if (lodash.find(root.profile.credentials, {