diff options
Diffstat (limited to 'www/js/PortalLoginCtrl.js')
| -rw-r--r-- | www/js/PortalLoginCtrl.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index c202c20d..10dd30ce 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -165,6 +165,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic if ($rootScope.tappedNotification) { + var ld = ZMDataModel.getLogin(); ZMDataModel.zmLog ("Came via push tap. onTapScreen="+ld.onTapScreen); @@ -172,19 +173,25 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic $rootScope.tappedNotification = 0; $ionicHistory.nextViewOptions({disableBack: true}); - if (ld.onTapScreen == 'montage' ) + if (ld.onTapScreen == $translate.instant('kTapMontage') ) { ZMDataModel.zmDebug("Going to montage"); $state.go("montage", {}, { reload: true }); return; } - else + else if (ld.onTapScreen == $translate.instant ('kTapEvents')) { ZMDataModel.zmDebug("Going to events"); $state.go("events", {"id": 0}, { reload: true }); return; } + else // we go to live + { + ZMDataModel.zmDebug("Going to live view but Montage for now"); + $state.go("montage", {}, { reload: true }); + return; + } } ZMDataModel.zmDebug("Transitioning state to: " + $rootScope.lastState ? $rootScope.lastState : 'montage'); |
