mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 05:52:57 +00:00
Don't refresh resolved comments every times an entry changes
This commit is contained in:
parent
bf56952f88
commit
5fb54d8447
2 changed files with 7 additions and 7 deletions
|
@ -163,11 +163,12 @@ define [
|
|||
|
||||
$scope.refreshResolvedCommentsDropdown = () ->
|
||||
$scope.reviewPanel.dropdown.loading = true
|
||||
refreshRanges()
|
||||
.then () ->
|
||||
$scope.reviewPanel.dropdown.loading = false
|
||||
.catch () ->
|
||||
$scope.reviewPanel.dropdown.loading = false
|
||||
q = refreshRanges()
|
||||
q.then () ->
|
||||
$scope.reviewPanel.dropdown.loading = false
|
||||
q.catch () ->
|
||||
$scope.reviewPanel.dropdown.loading = false
|
||||
return q
|
||||
|
||||
updateEntries = (doc_id) ->
|
||||
rangesTracker = getChangeTracker(doc_id)
|
||||
|
|
|
@ -23,6 +23,7 @@ define [
|
|||
scope.state.isOpen = !scope.state.isOpen
|
||||
if (scope.state.isOpen)
|
||||
scope.onOpen()
|
||||
.then () -> filterResolvedComments()
|
||||
|
||||
scope.resolvedComments = []
|
||||
|
||||
|
@ -54,5 +55,3 @@ define [
|
|||
resolvedComment.docName = getDocNameById(docId)
|
||||
|
||||
scope.resolvedComments.push(resolvedComment)
|
||||
|
||||
scope.$on "entries:changed", filterResolvedComments
|
Loading…
Reference in a new issue