Fixed jump to discussion button not showing

This commit is contained in:
Phil Hughes 2016-11-09 08:54:48 +00:00 committed by Fatih Acet
parent c8133c53b2
commit a9349f5734
1 changed files with 5 additions and 1 deletions

View File

@ -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 () {