simple test

This commit is contained in:
Gustavo Maximiliano Cortez 2014-09-25 16:50:15 -03:00
commit 26148d1f76
2 changed files with 17 additions and 1 deletions

View file

@ -156,11 +156,12 @@ angular.module('copayApp.controllers').controller('TransactionsController',
$scope.getTransactions();
}
$scope.amountAlternative = function (amount, txIndex) {
$scope.amountAlternative = function (amount, txIndex, cb) {
var w = $rootScope.wallet;
rateService.whenAvailable(function() {
var valueSat = amount * w.settings.unitToSatoshi;
$scope.alternativeCurrency[txIndex] = rateService.toFiat(valueSat, w.settings.alternativeIsoCode);
return cb ? cb() : null;
});
};
});