add switch to enable/disable notifications on global setings

This commit is contained in:
Javier 2015-12-23 14:17:24 -03:00 committed by Gabriel Bazán
commit b3c59e2cb0
4 changed files with 30 additions and 3 deletions

View file

@ -1197,6 +1197,11 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.updateAll();
});
$rootScope.$on('Local/EnableNotifications', function(event, vale) {
//make suscribe/unsuscribe
self.updateAll();
});
$rootScope.$on('Local/FeeLevelUpdated', function(event, level) {
self.setCurrentFeeLevel(level);
});