remove params from the url

This commit is contained in:
Gabriel Bazán 2016-09-02 11:20:33 -03:00
commit 0a5efb4930
3 changed files with 8 additions and 5 deletions

View file

@ -10,9 +10,7 @@ angular.module('copayApp.controllers').controller('backupWarningController', fun
$scope.close = function() {
backupWarningPopup.close();
$state.go('onboarding.backup', {
fromOnboarding: true
})
$state.go('onboarding.backup');
};
}
});

View file

@ -37,6 +37,7 @@ angular.module('copayApp.controllers').controller('tourController',
ongoingProcess.set('creatingWallet', false);
var wallet = walletClient;
$state.go('onboarding.collectEmail', {
fromOnboarding: true,
walletId: wallet.credentials.walletId
});
});

View file

@ -563,9 +563,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
*/
.state('onboarding', {
url: '/onboarding/:walletId/:fromOnboarding',
url: '/onboarding',
abstract: true,
template: '<ion-nav-view name="onboarding"></ion-nav-view>'
template: '<ion-nav-view name="onboarding"></ion-nav-view>',
params: {
walletId: null,
fromOnboarding: null,
},
})
.state('onboarding.welcome', {
url: '/welcome',