Don't show review panel if user doesn't have track changes

This commit is contained in:
James Allen 2017-02-14 09:38:58 +01:00
parent bf5f5f832d
commit 61ef158f76

View file

@ -41,6 +41,11 @@ define [
$scope.$watch "ui.pdfLayout", (layout) ->
$scope.reviewPanel.layoutToLeft = (layout == "flat")
$scope.$watch "project.features.trackChangesVisible", (visible) ->
return if !visible?
if !visible
$scope.ui.reviewPanelOpen = false
$scope.commentState =
adding: false