add home tip when onboarding is finished

This commit is contained in:
Gabriel Bazán 2016-09-19 12:06:46 -03:00
commit c2c70779fa
8 changed files with 72 additions and 26 deletions

View file

@ -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
});
};
});

View file

@ -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
});
}
});
};

View file

@ -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
});
}
});
};

View file

@ -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;