Hide resolved comments from the review panel.

This commit is contained in:
Paulo Reis
2017-01-09 15:15:03 +00:00
parent 35bdb4383a
commit 1a100b77df
2 changed files with 2 additions and 3 deletions
@@ -32,7 +32,7 @@
on-indicator-click="toggleReviewPanel();" on-indicator-click="toggleReviewPanel();"
) )
div(ng-if="entry.type === 'comment'") div(ng-if="entry.type === 'comment' && !(reviewPanel.commentThreads[entry.thread_id].resolved === true)")
comment-entry( comment-entry(
entry="entry" entry="entry"
threads="reviewPanel.commentThreads" threads="reviewPanel.commentThreads"
@@ -73,7 +73,7 @@
ng-click="gotoEntry(doc_id, entry)" ng-click="gotoEntry(doc_id, entry)"
) )
div(ng-if="entry.type === 'comment'") div(ng-if="entry.type === 'comment' && !(reviewPanel.commentThreads[entry.thread_id].resolved === true)")
comment-entry( comment-entry(
entry="entry" entry="entry"
threads="reviewPanel.commentThreads" threads="reviewPanel.commentThreads"
@@ -18,7 +18,6 @@ define [
scope.toggleOpenState = () -> scope.toggleOpenState = () ->
scope.state.isOpen = !scope.state.isOpen scope.state.isOpen = !scope.state.isOpen
if (scope.state.isOpen) if (scope.state.isOpen)
console.log('will call stuff')
scope.onOpen() scope.onOpen()
scope.resolvedCommentsPerFile = {} scope.resolvedCommentsPerFile = {}