From 948974395cc4559cff94802fd9d3ff63a5006819 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 21 Jul 2019 12:43:07 -0400 Subject: remember moment overlay state --- www/js/MomentCtrl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/js/MomentCtrl.js') diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js index 79454c33..38edb4e4 100644 --- a/www/js/MomentCtrl.js +++ b/www/js/MomentCtrl.js @@ -817,6 +817,9 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ $scope.toggleIcons = function () { $scope.showIcons = !$scope.showIcons; + ld = NVR.getLogin(); + ld.momentShowIcons = $scope.showIcons; + NVR.setLogin(ld); }; //---------------------------------------------------------------- @@ -843,7 +846,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ masonry = null; var ld = NVR.getLogin(); - $scope.showIcons = true; + $scope.showIcons = ld.momentShowIcons; $scope.areImagesLoading = true; -- cgit v1.2.3