diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-05 09:31:45 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-05 09:31:45 -0400 |
| commit | e71e9c7ce960ec95edd4af5783a62efb14fc1607 (patch) | |
| tree | 78e30a91eac9cbef0394a12d71d05ae2fc7d0e26 /www/js/DevOptionsCtrl.js | |
| parent | 058fcb07bf1529339fa5c18cab233c48cdce6a1b (diff) | |
#963 allow size selection of thumbs
Diffstat (limited to 'www/js/DevOptionsCtrl.js')
| -rw-r--r-- | www/js/DevOptionsCtrl.js | 29 |
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(); |
