summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/js/MontageCtrl.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index 53bcb660..497fd041 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -656,7 +656,16 @@ angular.module('zmApp.controllers')
if (monitor.Monitor.lastEvent && showMontageSidebars) {
- monitor.Monitor.showSidebar = true;
+
+ if (ld.objectDetectionFilter) {
+ if (monitor.Monitor.lastEvent.object) {
+ monitor.Monitor.showSidebar = true;
+ }
+ }
+ else {
+ monitor.Monitor.showSidebar = true;
+ }
+
}
},