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"
|
ng-if="!isLoading"
|
||||||
)
|
)
|
||||||
resolved-comment-entry(
|
resolved-comment-entry(
|
||||||
ng-repeat="thread in resolvedComments | orderBy:'-resolved_at'"
|
ng-repeat="thread in resolvedComments | orderBy:'resolved_at':true"
|
||||||
thread="thread"
|
thread="thread"
|
||||||
on-unresolve="handleUnresolve(threadId);"
|
on-unresolve="handleUnresolve(threadId);"
|
||||||
on-delete="handleDelete(entryId, threadId);"
|
on-delete="handleDelete(entryId, threadId);"
|
||||||
|
|
|
@ -33,7 +33,7 @@ define [
|
||||||
scope.onDelete({ entryId, threadId })
|
scope.onDelete({ entryId, threadId })
|
||||||
|
|
||||||
getDocNameById = (docId) ->
|
getDocNameById = (docId) ->
|
||||||
doc = _.find(scope.docs, (doc) -> doc.doc.id = docId)
|
doc = _.find(scope.docs, (doc) -> doc.doc.id == docId)
|
||||||
if doc?
|
if doc?
|
||||||
return doc.path
|
return doc.path
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue