summaryrefslogtreecommitdiff
path: root/www/js/DevOptionsCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-09-05 09:31:45 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-09-05 09:31:45 -0400
commite71e9c7ce960ec95edd4af5783a62efb14fc1607 (patch)
tree78e30a91eac9cbef0394a12d71d05ae2fc7d0e26 /www/js/DevOptionsCtrl.js
parent058fcb07bf1529339fa5c18cab233c48cdce6a1b (diff)
#963 allow size selection of thumbs
Diffstat (limited to 'www/js/DevOptionsCtrl.js')
-rw-r--r--www/js/DevOptionsCtrl.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/js/DevOptionsCtrl.js b/www/js/DevOptionsCtrl.js
index d735f967..2af824b5 100644
--- a/www/js/DevOptionsCtrl.js
+++ b/www/js/DevOptionsCtrl.js
@@ -143,6 +143,8 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope'
NVR.debug("SaveDevOptions: Saving to disk");
NVR.setLogin($scope.loginData);
+
+ //console.log ($scope.loginData);
NVR.getMonitors(1);
}
@@ -210,6 +212,33 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope'
});
};
+ $scope.selectEventViewThumbsSize = function() {
+
+ var buttons = [
+
+ { text: $translate.instant('kEventViewThumbsSmall'), value:'small' },
+ { text: $translate.instant('kEventViewThumbsLarge'), value:'large' },
+
+ ];
+
+ $ionicActionSheet.show({
+ titleText: $translate.instant('kSelect'),
+ buttons: buttons,
+
+ cancelText: $translate.instant('kButtonCancel'),
+ cancel: function() {
+ NVR.debug ('obfuscation actionsheet cancelled');
+ },
+ buttonClicked: function(index) {
+
+ $scope.loginData.eventViewThumbsSize = buttons[index].value;
+ NVR.debug ('changed event view thumbs size to:'+$scope.loginData.eventViewThumbsSize );
+ return true;
+ },
+
+ });
+ };
+
$scope.saveDevOptions = function () {
saveDevOptions();