Use correct flag for determining mini panel visibility

This commit is contained in:
James Allen 2017-02-13 14:39:43 +01:00
parent f840a20f5c
commit bf5f5f832d

View file

@ -148,7 +148,7 @@ define [
entries = $scope.reviewPanel.entries[$scope.editor.open_doc_id] or {} entries = $scope.reviewPanel.entries[$scope.editor.open_doc_id] or {}
Object.keys(entries).length Object.keys(entries).length
), (nEntries) -> ), (nEntries) ->
$scope.reviewPanel.hasEntries = nEntries > 0 and $scope.project.features.trackChanges $scope.reviewPanel.hasEntries = nEntries > 0 and $scope.project.features.trackChangesVisible
$scope.$watch "ui.reviewPanelOpen", (reviewPanelOpen) -> $scope.$watch "ui.reviewPanelOpen", (reviewPanelOpen) ->
return if !reviewPanelOpen? return if !reviewPanelOpen?