Code cleanup.

This commit is contained in:
Andy Phillipson 2016-12-12 09:49:21 -05:00
parent 4d3ff6c2f0
commit 7851188979
1 changed files with 1 additions and 16 deletions

View File

@ -1,24 +1,9 @@
'use strict';
angular.module('copayApp.controllers').controller('walletBalanceController', function($scope, $timeout, $ionicHistory, gettextCatalog, configService, feeService, ongoingProcess, popupService) {
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();
});
angular.module('copayApp.controllers').controller('walletBalanceController', function($scope) {
$scope.close = function() {
$scope.walletBalanceModal.hide();
};
$scope.$on("$ionicView.enter", function(event, data) {
$scope.feeOpts = feeService.feeOpts;
$scope.currentFeeLevel = feeService.getCurrentFeeLevel();
});
});