mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't show review panel if user doesn't have track changes
This commit is contained in:
parent
bf5f5f832d
commit
61ef158f76
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,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
|
||||
content: ""
|
||||
|
|
Loading…
Reference in a new issue