Skip to content

Commit

Permalink
#807 use scope.id - no idea what stateparams.id holds...
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Apr 11, 2019
1 parent 4436648 commit 11a7566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/EventCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2657,14 +2657,15 @@ angular.module('zmApp.controllers')
NVR.setAwake(NVR.getKeepAwake());

$scope.currentEvent = event;
$scope.followSameMonitor = ($stateParams.id == "0") ? "0" : "1";
$scope.followSameMonitor = ($scope.id == "0") ? "0" : "1";

var ld = NVR.getLogin();
var sl = 'disabled';
if (ld.showLiveForInProgressEvents) {
sl = 'enabled';
}

console.log (">>>>>>>>>>>>>> FOLLOW?"+$scope.followSameMonitor);
$ionicModal.fromTemplateUrl('templates/events-modal.html', {
scope: $scope,
animation: 'slide-in-up',
Expand Down

0 comments on commit 11a7566

Please sign in to comment.