mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix doc names and sort order in resolved comments dropdown
This commit is contained in:
parent
8e0c2ff0b3
commit
a42cc48be8
2 changed files with 2 additions and 2 deletions
|
@ -289,7 +289,7 @@ script(type='text/ng-template', id='resolvedCommentsDropdownTemplate')
|
|||
ng-if="!isLoading"
|
||||
)
|
||||
resolved-comment-entry(
|
||||
ng-repeat="thread in resolvedComments | orderBy:'-resolved_at'"
|
||||
ng-repeat="thread in resolvedComments | orderBy:'resolved_at':true"
|
||||
thread="thread"
|
||||
on-unresolve="handleUnresolve(threadId);"
|
||||
on-delete="handleDelete(entryId, threadId);"
|
||||
|
|
|
@ -33,7 +33,7 @@ define [
|
|||
scope.onDelete({ entryId, threadId })
|
||||
|
||||
getDocNameById = (docId) ->
|
||||
doc = _.find(scope.docs, (doc) -> doc.doc.id = docId)
|
||||
doc = _.find(scope.docs, (doc) -> doc.doc.id == docId)
|
||||
if doc?
|
||||
return doc.path
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue