summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-03-16 16:33:33 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-03-16 16:33:33 -0400
commit618c6a1c6ba1ccb3d7c918c44c6be4604dd50dd8 (patch)
tree2a01f234eaa7cce00fa83ab3c07b5d577a485348 /www/js
parent3ae35d7c4a55905585374ef376e4cc50932ed5b7 (diff)
add snapshot frame to list of thumbnails
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventModalCtrl.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 72214748..cc1902f8 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -1902,6 +1902,13 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
if (tempAlarms.length > 1) // don't do it for just one too
$scope.alarm_images = tempAlarms;
+ // add snapshot
+ if (NVR.getSnapshotFrame() == 'snapshot') {
+ $scope.alarm_images.unshift({
+ frameid: 'snapshot',
+ id: 'doesntseemtobeusedhuh'
+ });
+ }
if (data.event.Event.Notes.indexOf('detected:') != -1) {
NVR.debug ("You have object detection! Adding object detect frame");