From 2e5c6d4570ae7fab1111ac5dda558b5a4faf0ac9 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 11 Jan 2017 13:41:07 +0100 Subject: [PATCH] Don't remove add comment marker when updating entries --- .../ide/review-panel/controllers/ReviewPanelController.coffee | 4 +++- .../coffee/ide/review-panel/directives/addCommentEntry.coffee | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee index d8c307d66e..67bc813da4 100644 --- a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee +++ b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee @@ -154,7 +154,9 @@ define [ # Assume we'll delete everything until we see it, then we'll remove it from this object delete_changes = {} - delete_changes[change_id] = true for change_id, change of entries + for change_id, change of entries + if change_id != "add-comment" + delete_changes[change_id] = true for change in rangesTracker.changes delete delete_changes[change.id] diff --git a/services/web/public/coffee/ide/review-panel/directives/addCommentEntry.coffee b/services/web/public/coffee/ide/review-panel/directives/addCommentEntry.coffee index fd3edd09ca..de10524b70 100644 --- a/services/web/public/coffee/ide/review-panel/directives/addCommentEntry.coffee +++ b/services/web/public/coffee/ide/review-panel/directives/addCommentEntry.coffee @@ -29,7 +29,6 @@ define [ scope.submitNewComment() scope.submitNewComment = () -> - console.log scope.state.content scope.onSubmit { content: scope.state.content } scope.state.isAdding = false scope.state.content = "" \ No newline at end of file