From a3e25c85ee588304ce1f908bfa1d85b37bf11fe3 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 27 Apr 2020 10:21:37 -0400 Subject: add object filter to montage (thought it was there before?), also show latest eid --- www/js/MontageCtrl.js | 3 +++ www/templates/montage.html | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index f8544f19..0cea06a2 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -587,6 +587,9 @@ angular.module('zmApp.controllers') } apiurl += "/"+encodeURIComponent("AlarmFrames >=:") + (ld.enableAlarmCount ? ld.minAlarmCount : 0); + if (ld.objectDetectionFilter) { + apiurl +='/'+encodeURIComponent('Notes REGEXP:detected:'); + } /*if ( !(monitor.Monitor.Id in ld.lastEventCheckTimes)) { apiurl+= '/1 month'; diff --git a/www/templates/montage.html b/www/templates/montage.html index 72425c45..1ab59efa 100644 --- a/www/templates/montage.html +++ b/www/templates/montage.html @@ -197,8 +197,7 @@ {{'kMontageEventUnseenCount' | translate}}
-  {{'kMontageEventLatest' | translate}}: - {{humanizeTime(monitor.Monitor.lastEvent.events[0].Event.StartTime)}}
+  {{'kMontageEventLatest' | translate}}: eid:{{monitor.Monitor.lastEvent.events[0].Event.Id}} ({{humanizeTime(monitor.Monitor.lastEvent.events[0].Event.StartTime)}})
  {{monitor.Monitor.lastEvent.events[0].Event.Notes}}
-- cgit v1.2.3