Fix doc names and sort order in resolved comments dropdown

This commit is contained in:
James Allen 2017-01-12 13:44:54 +01:00
parent 8e0c2ff0b3
commit a42cc48be8
2 changed files with 2 additions and 2 deletions

View file

@ -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);"

View file

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