diff options
-rw-r--r-- | app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 b/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 index 275668f2252..bd4c20aed8b 100644 --- a/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 +++ b/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6 @@ -8,11 +8,15 @@ //= require_directory ./components $(() => { + const COMPONENT_SELECTOR = 'resolve-btn, resolve-discussion-btn, jump-to-discussion, comment-and-resolve-btn'; + window.gl = window.gl || {}; window.gl.diffNoteApps = {}; gl.diffNotesCompileComponents = () => { - const $components = $('resolve-btn, resolve-discussion-btn, jump-to-discussion, comment-and-resolve-btn'); + const $components = $(COMPONENT_SELECTOR).filter(function () { + return $(this).closest('resolve-count').length !== 1; + }); if ($components) { $components.each(function () { |