mirror of https://github.com/BTCPrivate/copay.git
Code cleanup.
This commit is contained in:
parent
4d3ff6c2f0
commit
7851188979
|
@ -1,24 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('walletBalanceController', function($scope, $timeout, $ionicHistory, gettextCatalog, configService, feeService, ongoingProcess, popupService) {
|
angular.module('copayApp.controllers').controller('walletBalanceController', function($scope) {
|
||||||
|
|
||||||
ongoingProcess.set('gettingFeeLevels', true);
|
|
||||||
feeService.getFeeLevels(function(err, levels) {
|
|
||||||
ongoingProcess.set('gettingFeeLevels', false);
|
|
||||||
if (err) {
|
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$scope.feeLevels = levels;
|
|
||||||
$scope.$apply();
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.close = function() {
|
$scope.close = function() {
|
||||||
$scope.walletBalanceModal.hide();
|
$scope.walletBalanceModal.hide();
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data) {
|
|
||||||
$scope.feeOpts = feeService.feeOpts;
|
|
||||||
$scope.currentFeeLevel = feeService.getCurrentFeeLevel();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue