summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/merge_request_tabs.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-15 10:21:49 +0000
committerPhil Hughes <me@iamphill.com>2017-12-15 16:33:36 +0000
commiteaf2f48dc7db706fa1dea050543667f8cdebd4c4 (patch)
tree0333f4371bd9158bba99bb68c2c4a6aa960daa5e /app/assets/javascripts/merge_request_tabs.js
parentd2f313dcbccc1e3642fb0ccdf0849e0ef4ec8e21 (diff)
downloadgitlab-ce-eaf2f48dc7db706fa1dea050543667f8cdebd4c4.tar.gz
Export and use Notes ES module
Diffstat (limited to 'app/assets/javascripts/merge_request_tabs.js')
-rw-r--r--app/assets/javascripts/merge_request_tabs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js b/app/assets/javascripts/merge_request_tabs.js
index cacca35ca98..acfc62fe5cb 100644
--- a/app/assets/javascripts/merge_request_tabs.js
+++ b/app/assets/javascripts/merge_request_tabs.js
@@ -1,5 +1,4 @@
/* eslint-disable no-new, class-methods-use-this */
-/* global notes */
import Cookies from 'js-cookie';
import Flash from './flash';
@@ -16,6 +15,7 @@ import initDiscussionTab from './image_diff/init_discussion_tab';
import Diff from './diff';
import { localTimeAgo } from './lib/utils/datetime_utility';
import syntaxHighlight from './syntax_highlight';
+import Notes from './notes';
/* eslint-disable max-len */
// MergeRequestTabs
@@ -324,7 +324,7 @@ export default class MergeRequestTabs {
if (anchor && anchor.length > 0) {
const notesContent = anchor.closest('.notes_content');
const lineType = notesContent.hasClass('new') ? 'new' : 'old';
- notes.toggleDiffNote({
+ Notes.instance.toggleDiffNote({
target: anchor,
lineType,
forceShow: true,