removed duplicate code
This commit is contained in:
parent
53e0065b74
commit
af6777d359
1 changed files with 1 additions and 29 deletions
|
|
@ -73,7 +73,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
|
|
||||||
$scope.loadTxs = function() {
|
$scope.loadTxs = function() {
|
||||||
controllerUtils.updateTxs();
|
controllerUtils.updateTxs();
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
|
|
@ -625,32 +625,4 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
'.' + ' Message: ' + merchantData.pr.pd.memo);
|
'.' + ' Message: ' + merchantData.pr.pd.memo);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
controllerUtils.redirIfNotComplete();
|
|
||||||
|
|
||||||
var w = $rootScope.wallet;
|
|
||||||
preconditions.checkState(w);
|
|
||||||
preconditions.checkState(w.settings.unitToSatoshi);
|
|
||||||
|
|
||||||
$rootScope.title = 'Send';
|
|
||||||
$scope.loading = false;
|
|
||||||
var satToUnit = 1 / w.settings.unitToSatoshi;
|
|
||||||
$scope.defaultFee = bitcore.TransactionBuilder.FEE_PER_1000B_SAT * satToUnit;
|
|
||||||
$scope.unitToBtc = w.settings.unitToSatoshi / bitcore.util.COIN;
|
|
||||||
$scope.unitToSatoshi = w.settings.unitToSatoshi;
|
|
||||||
|
|
||||||
$scope.alternativeName = w.settings.alternativeName;
|
|
||||||
$scope.alternativeIsoCode = w.settings.alternativeIsoCode;
|
|
||||||
|
|
||||||
$scope.isRateAvailable = false;
|
|
||||||
$scope.rateService = rateService;
|
|
||||||
$scope.availableBalance = $scope.getAvailableAmount();
|
|
||||||
|
|
||||||
rateService.whenAvailable(function() {
|
|
||||||
$scope.isRateAvailable = true;
|
|
||||||
$scope.$digest();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue