From 41e8490439876ff4a33e4b3c5f4695b750c283d2 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 16 May 2019 20:14:14 -0400 Subject: only show event notes for objects if you selected objects in event list --- www/js/MontageCtrl.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'www') 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; + } + } }, -- cgit v1.2.3