push notification subscribe refactor

This commit is contained in:
Gabriel Bazán 2016-01-04 08:55:28 -03:00
commit 2d07cf0e55
4 changed files with 45 additions and 36 deletions

View file

@ -41,7 +41,7 @@ angular.module('copayApp.controllers').controller('preferencesGlobalController',
}
};
configService.set(opts, function(err) {
$rootScope.$emit('Local/EnableNotifications', opts);
$rootScope.$emit('Local/EnableNotifications', opts.notifications.enabled);
if (err) $log.debug(err);
});
});