Don't show the mini review panel when the only visible entry is the add comment one.

This commit is contained in:
Paulo Reis 2017-03-17 16:28:21 +00:00
parent 351f9c8252
commit c74449b2e3

View file

@ -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