Skip to content

Commit

Permalink
Camera settings button toggles configuration open/close. Fixes #2435 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tunkio authored Apr 30, 2022
1 parent 1ae3831 commit ab23ae3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion motioneye/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4848,7 +4848,12 @@ function addCameraFrameUi(cameraConfig) {

/* add the top buttons handlers */
configureButton.on('click', function () {
doConfigureCamera(cameraId);
if (isSettingsOpen()) {
closeSettings();
}
else {
doConfigureCamera(cameraId);
}
});

picturesButton.on('click', function (cameraId) {
Expand Down

0 comments on commit ab23ae3

Please sign in to comment.