2016-08-25 16:31:47 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2016-09-02 15:42:45 -03:00
|
|
|
angular.module('copayApp.controllers').controller('notificationsController', function($scope, $state, $stateParams, profileService) {
|
2016-08-25 16:31:47 -03:00
|
|
|
|
2016-09-02 15:42:45 -03:00
|
|
|
$scope.walletId = $stateParams.walletId;
|
2016-08-25 16:31:47 -03:00
|
|
|
$scope.allowNotif = function() {
|
2016-08-29 11:56:31 -03:00
|
|
|
profileService.pushNotificationsInit();
|
2016-09-13 17:12:17 -03:00
|
|
|
$state.go('onboarding.backupRequest', {
|
|
|
|
|
walletId: $scope.walletId
|
|
|
|
|
});
|
2016-08-25 16:31:47 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|