From 02596e5821ba01672763b5faf5375de415de3bf4 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 24 Jan 2018 09:34:47 -0500 Subject: #587 - option added to dev settings to make this configurable --- www/js/TimelineCtrl.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'www/js/TimelineCtrl.js') diff --git a/www/js/TimelineCtrl.js b/www/js/TimelineCtrl.js index 81db5991..a4a564d0 100644 --- a/www/js/TimelineCtrl.js +++ b/www/js/TimelineCtrl.js @@ -192,11 +192,18 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla //prepareModalEvent(event.Event.Id); + var ld = NVRDataModel.getLogin(); + var sl = 'disabled'; + if (ld.showLiveForInProgressEvents) { + sl = 'enabled'; + } + $ionicModal.fromTemplateUrl('templates/events-modal.html', { scope: $scope, // give ModalCtrl access to this scope animation: 'slide-in-up', - id: 'footage' + id: 'footage', + showLive:sl }) .then(function(modal) { -- cgit v1.2.3