Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event list improvements #963

Merged
merged 10 commits into from
Sep 5, 2020
29 changes: 29 additions & 0 deletions www/js/DevOptionsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading