mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't show the mini review panel when the only visible entry is the add comment one.
This commit is contained in:
parent
351f9c8252
commit
c74449b2e3
1 changed files with 4 additions and 1 deletions
|
@ -163,7 +163,10 @@ define [
|
|||
|
||||
$scope.$watch (() ->
|
||||
entries = $scope.reviewPanel.entries[$scope.editor.open_doc_id] or {}
|
||||
Object.keys(entries).length
|
||||
permEntries = {}
|
||||
for entry, entryData of entries
|
||||
permEntries[entry] = entryData if entry != "add-comment"
|
||||
Object.keys(permEntries).length
|
||||
), (nEntries) ->
|
||||
$scope.reviewPanel.hasEntries = nEntries > 0 and $scope.project.features.trackChangesVisible
|
||||
|
||||
|
|
Loading…
Reference in a new issue