From 1a100b77df85ca4e53de60eec9cbf7fa54582931 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Mon, 9 Jan 2017 15:15:03 +0000 Subject: [PATCH] Hide resolved comments from the review panel. --- services/web/app/views/project/editor/review-panel.jade | 4 ++-- .../review-panel/directives/resolvedCommentsDropdown.coffee | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/services/web/app/views/project/editor/review-panel.jade b/services/web/app/views/project/editor/review-panel.jade index 40c54b6888..91f0b762f7 100644 --- a/services/web/app/views/project/editor/review-panel.jade +++ b/services/web/app/views/project/editor/review-panel.jade @@ -32,7 +32,7 @@ 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( entry="entry" threads="reviewPanel.commentThreads" @@ -73,7 +73,7 @@ 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( entry="entry" threads="reviewPanel.commentThreads" diff --git a/services/web/public/coffee/ide/review-panel/directives/resolvedCommentsDropdown.coffee b/services/web/public/coffee/ide/review-panel/directives/resolvedCommentsDropdown.coffee index b909948d55..df3299de51 100644 --- a/services/web/public/coffee/ide/review-panel/directives/resolvedCommentsDropdown.coffee +++ b/services/web/public/coffee/ide/review-panel/directives/resolvedCommentsDropdown.coffee @@ -18,7 +18,6 @@ define [ scope.toggleOpenState = () -> scope.state.isOpen = !scope.state.isOpen if (scope.state.isOpen) - console.log('will call stuff') scope.onOpen() scope.resolvedCommentsPerFile = {}