send
This commit is contained in:
parent
eb733c5d3c
commit
7d0870aea0
6 changed files with 152 additions and 77 deletions
|
|
@ -6,7 +6,7 @@ angular.module('copayApp.services').factory('txFormatService', function(profileS
|
|||
var formatAmountStr = function(amount) {
|
||||
if (!amount) return;
|
||||
var config = configService.getSync().wallet.settings;
|
||||
return profileService.formatAmount(amount) + ' ' + config.unitName;
|
||||
return walletService.formatAmount(amount) + ' ' + config.unitName;
|
||||
};
|
||||
|
||||
var formatAlternativeStr = function(amount) {
|
||||
|
|
@ -18,7 +18,7 @@ angular.module('copayApp.services').factory('txFormatService', function(profileS
|
|||
var formatFeeStr = function(fee) {
|
||||
if (!fee) return;
|
||||
var config = configService.getSync().wallet.settings;
|
||||
return profileService.formatAmount(fee) + ' ' + config.unitName;
|
||||
return walletService.formatAmount(fee) + ' ' + config.unitName;
|
||||
};
|
||||
|
||||
root.processTx = function(tx) {
|
||||
|
|
|
|||
|
|
@ -843,5 +843,14 @@ console.log('[walletService.js.786:wallet:]',wallet, forceNew); //TODO
|
|||
|
||||
|
||||
|
||||
root.handleEncryptedWallet = function(client, cb) {
|
||||
if (!root.isEncrypted(client)) return cb();
|
||||
$rootScope.$emit('Local/NeedsPassword', false, function(err, password) {
|
||||
if (err) return cb(err);
|
||||
return cb(walletService.unlock(client, password));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
return root;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue