refactor config/list/scan

This commit is contained in:
matiu 2017-09-08 05:03:30 -03:00
commit fbda525e6d
8 changed files with 213 additions and 26 deletions

View file

@ -25,6 +25,11 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
}, 10);
});
$scope.cashSupport = {
value: config.cashSupport.enabled
};
// TODO move this to a generic service
bitpayCardService.getCards(function(err, cards) {
if (err) $log.error(err);
@ -62,6 +67,8 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
});
});
$scope.$on("$ionicView.enter", function(event, data) {
updateConfig();
});