diff options
| author | Pliable Pixels <pliablepixels@users.noreply.github.com> | 2020-09-05 08:00:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-05 08:00:45 -0400 |
| commit | 058fcb07bf1529339fa5c18cab233c48cdce6a1b (patch) | |
| tree | 4900fbda885dc985cd936bb20cdac63284fce604 /www/js/DevOptionsCtrl.js | |
| parent | e54b8659ff385c667b7590bc383e8315769d47a7 (diff) | |
| parent | 1a4449aeadeb88db971f0960d14fd679a7364dbb (diff) | |
Merge pull request #963 from lucasnz/master
Event list improvements
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 2ad40bfa..d735f967 100644 --- a/www/js/DevOptionsCtrl.js +++ b/www/js/DevOptionsCtrl.js @@ -181,6 +181,35 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope' }); }; + $scope.selectEventViewThumbs = function() { + + var buttons = [ + { text: $translate.instant('kNone').toLowerCase(), value:'none' }, + { text: 'snapshot', value:'snapshot' }, + { text: 'objdetect', value:'objdetect' }, + { text: 'objdetect_jpg', value:'objdetect_jpg' }, + { text: 'objdetect_gif', value:'objdetect_gif' }, + + ]; + + $ionicActionSheet.show({ + titleText: $translate.instant('kSelect'), + buttons: buttons, + + cancelText: $translate.instant('kButtonCancel'), + cancel: function() { + NVR.debug ('obfuscation actionsheet cancelled'); + }, + buttonClicked: function(index) { + + $scope.loginData.eventViewThumbs = buttons[index].value; + NVR.debug ('changed event view thumbs to:'+$scope.loginData.eventViewThumbs ); + return true; + }, + + }); + }; + $scope.saveDevOptions = function () { saveDevOptions(); |
