Fix doc names and sort order in resolved comments dropdown
This commit is contained in:
@@ -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);"
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user