summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-09-12 16:25:10 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-09-12 16:25:10 -0400
commit7025aa4ec599593a80e2d3c2249b49eae7ef9f6a (patch)
tree4c96e35f43ea74d62deba694cf006e3b0f7987a4 /www/js
parent38cb88c6c515e18b588ec1af53036fa2bf8661f1 (diff)
#704 purge stack
Diffstat (limited to 'www/js')
-rw-r--r--www/js/MenuController.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/www/js/MenuController.js b/www/js/MenuController.js
index 2970243d..c221aebe 100644
--- a/www/js/MenuController.js
+++ b/www/js/MenuController.js
@@ -131,6 +131,10 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
.then (function () {
+ $ionicHistory.nextViewOptions({
+ disableBack: true
+ });
+
$state.go('app.refresh', {
"view": $state.current.name
});
@@ -145,6 +149,10 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
$rootScope.apiVersion = "0.0.0";
NVRDataModel.debug("Error, failed API version, setting to " + $rootScope.apiVersion);
+ $ionicHistory.nextViewOptions({
+ disableBack: true
+ });
+
$state.go('app.refresh', {
"view": $state.current.name
});
@@ -168,6 +176,9 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
.then(function (data) {
var refresh = NVRDataModel.getMonitors(1);
$rootScope.apiVersion = data;
+ $ionicHistory.nextViewOptions({
+ disableBack: true
+ });
$state.go('app.refresh', {
"view": $state.current.name
});
@@ -177,6 +188,9 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
var refresh = NVRDataModel.getMonitors(1);
$rootScope.apiVersion = "0.0.0";
NVRDataModel.debug("Error, failed API version, setting to " + $rootScope.apiVersion);
+ $ionicHistory.nextViewOptions({
+ disableBack: true
+ });
$state.go('app.refresh', {
"view": $state.current.name
});
@@ -207,7 +221,7 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
$scope.newServer = {
val:""
- }
+ };
$scope.avs = Object.keys(NVRDataModel.getServerGroups());
$scope.avs = $scope.avs.filter(function() { return true; });