summaryrefslogtreecommitdiff
path: root/www/js/MomentCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-01-24 09:34:47 -0500
committerPliable Pixels <pliablepixels@gmail.com>2018-01-24 09:34:47 -0500
commit02596e5821ba01672763b5faf5375de415de3bf4 (patch)
tree2cc7c2a1ea2dbc055f39682f6293b2bcd65f7b6c /www/js/MomentCtrl.js
parent92faf1cd858447e7e8d3db0a3b3d2396934c5e4b (diff)
#587 - option added to dev settings to make this configurable
Diffstat (limited to 'www/js/MomentCtrl.js')
-rw-r--r--www/js/MomentCtrl.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js
index abd41d53..97fcd6d4 100644
--- a/www/js/MomentCtrl.js
+++ b/www/js/MomentCtrl.js
@@ -575,10 +575,17 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
index: 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:sl,
})
.then(function (modal) {
$scope.modal = modal;