Ref push notification

This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-22 00:35:11 -03:00
commit fbdfa0016e
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 20 additions and 13 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesGlobalController',
function($scope, $rootScope, $log, configService, isMobile, uxLanguage, pushNotificationsService) {
function($scope, $rootScope, $log, configService, uxLanguage, pushNotificationsService) {
this.init = function() {
var config = configService.getSync();
@ -17,9 +17,6 @@ angular.module('copayApp.controllers').controller('preferencesGlobalController',
$scope.pushNotifications = config.pushNotifications.enabled;
};
if (isMobile.Android() || isMobile.iOS()) $scope.mobile = true;
else $scope.mobile = false;
var unwatchSpendUnconfirmed = $scope.$watch('spendUnconfirmed', function(newVal, oldVal) {
if (newVal == oldVal) return;
var opts = {