fixes
This commit is contained in:
parent
2576b3e790
commit
cb0ecb69f9
1 changed files with 9 additions and 9 deletions
|
|
@ -904,18 +904,18 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
$ionicPlatform.registerBackButtonAction(function(e) {
|
$ionicPlatform.registerBackButtonAction(function(e) {
|
||||||
|
|
||||||
//from root tabs view
|
//from root tabs view
|
||||||
var matchHome = $ionicHistory.currentStateName().match(/home/) ? true : false;
|
var matchHome = $ionicHistory.currentStateName() == 'tabs.home' ? true : false;
|
||||||
var matchReceive = $ionicHistory.currentStateName().match(/receive/) ? true : false;
|
var matchReceive = $ionicHistory.currentStateName() == 'tabs.receive' ? true : false;
|
||||||
var matchScan = $ionicHistory.currentStateName().match(/scan/) ? true : false;
|
var matchScan = $ionicHistory.currentStateName() == 'tabs.scan' ? true : false;
|
||||||
var matchSend = $ionicHistory.currentStateName().match(/send/) ? true : false;
|
var matchSend = $ionicHistory.currentStateName() == 'tabs.send' ? true : false;
|
||||||
var matchSettings = $ionicHistory.currentStateName().match(/settings/) ? true : false;
|
var matchSettings = $ionicHistory.currentStateName() == 'tabs.settings' ? true : false;
|
||||||
var fromTabs = matchHome | matchReceive | matchScan | matchSend | matchSettings;
|
var fromTabs = matchHome | matchReceive | matchScan | matchSend | matchSettings;
|
||||||
|
|
||||||
//onboarding with no back views
|
//onboarding with no back views
|
||||||
var matchWelcome = $ionicHistory.currentStateName().match(/welcome/) ? true : false;
|
var matchWelcome = $ionicHistory.currentStateName() == 'onboarding.welcome' ? true : false;
|
||||||
var matchCollectEmail = $ionicHistory.currentStateName().match(/collectEmail/) ? true : false;
|
var matchCollectEmail = $ionicHistory.currentStateName() == 'onboarding.collectEmail' ? true : false;
|
||||||
var matchBackupRequest = $ionicHistory.currentStateName().match(/backupRequest/) ? true : false;
|
var matchBackupRequest = $ionicHistory.currentStateName() == 'onboarding.backupRequest' ? true : false;
|
||||||
var matchNotifications = $ionicHistory.currentStateName().match(/onboarding.notifications/) ? true : false;
|
var matchNotifications = $ionicHistory.currentStateName() == 'onboarding.notifications' ? true : false;
|
||||||
|
|
||||||
var fromOnboarding = matchCollectEmail | matchBackupRequest | matchNotifications | matchWelcome;
|
var fromOnboarding = matchCollectEmail | matchBackupRequest | matchNotifications | matchWelcome;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue