2019-09-18 10:02:45 -04:00
|
|
|
import initImageDiffHelper from './helpers/init_image_diff';
|
2017-10-07 00:25:17 -04:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
// Always pass can-create-note as false because a user
|
|
|
|
// cannot place new badge markers on discussion tab
|
|
|
|
const canCreateNote = false;
|
|
|
|
const renderCommentBadge = true;
|
|
|
|
|
|
|
|
const diffFileEls = document.querySelectorAll('.timeline-content .diff-file.js-image-file');
|
|
|
|
[...diffFileEls].forEach(diffFileEl =>
|
2019-09-18 10:02:45 -04:00
|
|
|
initImageDiffHelper.initImageDiff(diffFileEl, canCreateNote, renderCommentBadge),
|
2018-10-24 15:17:03 -04:00
|
|
|
);
|
2017-10-07 00:25:17 -04:00
|
|
|
};
|