add home tip when onboarding is finished
This commit is contained in:
parent
5bd450270b
commit
c2c70779fa
8 changed files with 72 additions and 26 deletions
|
|
@ -345,6 +345,8 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
if (err) $log.error(err);
|
||||
});
|
||||
}
|
||||
$state.go('tabs.home');
|
||||
$state.go('tabs.home', {
|
||||
fromOnboarding: $stateParams.fromOnboarding
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@ angular.module('copayApp.controllers').controller('disclaimerController', functi
|
|||
profileService.setDisclaimerAccepted(function(err) {
|
||||
if (err) $log.error(err);
|
||||
else {
|
||||
$state.go('tabs.home');
|
||||
$state.go('tabs.home', {
|
||||
fromOnboarding: true
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ angular.module('copayApp.controllers').controller('termsController', function($s
|
|||
profileService.setDisclaimerAccepted(function(err) {
|
||||
if (err) $log.error(err);
|
||||
else {
|
||||
$state.go('tabs.home');
|
||||
$state.go('tabs.home', {
|
||||
fromOnboarding: true
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('tabHomeController',
|
||||
function($rootScope, $timeout, $scope, $state, $ionicScrollDelegate, lodash, profileService, walletService, configService, $log, platformInfo, storageService, txpModalService, $window) {
|
||||
function($rootScope, $timeout, $scope, $state, $stateParams, $ionicScrollDelegate, lodash, profileService, walletService, configService, $log, platformInfo, storageService, txpModalService, $window) {
|
||||
$scope.externalServices = {};
|
||||
$scope.bitpayCardEnabled = true; // TODO
|
||||
$scope.openTxpModal = txpModalService.open;
|
||||
$scope.version = $window.version;
|
||||
$scope.name = $window.appConfig.nameCase;
|
||||
|
||||
$scope.homeTip = $stateParams.fromOnboarding;
|
||||
configService.whenAvailable(function() {
|
||||
var config = configService.getSync();
|
||||
var isWindowsPhoneApp = platformInfo.isWP && platformInfo.isCordova;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue