onboarding allow push notifications
This commit is contained in:
parent
f1805b2080
commit
effbd098a6
8 changed files with 36 additions and 28 deletions
|
|
@ -1,6 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('collectEmailController', function($rootScope, $scope, $state, $stateParams, $timeout, $ionicModal, profileService, walletService) {
|
||||
angular.module('copayApp.controllers').controller('collectEmailController', function($scope, $state, $stateParams, profileService, walletService, platformInfo) {
|
||||
|
||||
$scope.skip = function() {
|
||||
if (!platformInfo.isCordova) $state.go('onboarding.backupRequest');
|
||||
else $state.go('onboarding.notifications');
|
||||
}
|
||||
|
||||
$scope.save = function(form) {
|
||||
var wallet = profileService.getWallet($stateParams.walletId);
|
||||
|
|
@ -10,7 +15,8 @@ angular.module('copayApp.controllers').controller('collectEmailController', func
|
|||
email: email,
|
||||
}, function(err) {
|
||||
if (err) $log.warn(err);
|
||||
$state.go('onboarding.notifications');
|
||||
if (!platformInfo.isCordova) $state.go('onboarding.backupRequest');
|
||||
else $state.go('onboarding.notifications');
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue