summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index a2a3cec0..90eb90bf 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -2859,12 +2859,18 @@ angular.module('zmApp.controllers')
$scope.currentEvent = event;
$scope.followSameMonitor = ($stateParams.id == "0") ? "0" : "1";
+ var ld = NVRDataModel.getLogin();
+ var sl = 'disabled';
+ if (ld.showLiveForInProgressEvents) {
+ sl = 'enabled';
+ }
+
$ionicModal.fromTemplateUrl('templates/events-modal.html',
{
scope: $scope,
animation: 'slide-in-up',
id: 'footage',
- showLive:'disabled', // seems bool is not allowed...
+ showLive:sl, // seems bool is not allowed...
})
.then(function(modal)
{