From 859a6fb938bb9ee2a317c46dfa4fcc1af49608f0 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 18 Feb 2021 10:34:06 +0000 Subject: Add latest changes from gitlab-org/gitlab@13-9-stable-ee --- app/assets/javascripts/notes.js | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'app/assets/javascripts/notes.js') diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 857e5a34db6..8ed40f36103 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -10,24 +10,22 @@ class-methods-use-this */ old_notes_spec.js is the spec for the legacy, jQuery notes application. It has nothing to do with the new, fancy Vue notes app. */ +import { GlDeprecatedSkeletonLoading as GlSkeletonLoading } from '@gitlab/ui'; +import Autosize from 'autosize'; import $ from 'jquery'; -import '~/lib/utils/jquery_at_who'; -import { escape, uniqueId } from 'lodash'; import Cookies from 'js-cookie'; -import Autosize from 'autosize'; +import { escape, uniqueId } from 'lodash'; import Vue from 'vue'; -import { GlDeprecatedSkeletonLoading as GlSkeletonLoading } from '@gitlab/ui'; +import '~/lib/utils/jquery_at_who'; import AjaxCache from '~/lib/utils/ajax_cache'; import syntaxHighlight from '~/syntax_highlight'; -import axios from './lib/utils/axios_utils'; -import { getLocationHash } from './lib/utils/url_utility'; +import Autosave from './autosave'; +import loadAwardsHandler from './awards_handler'; +import CommentTypeToggle from './comment_type_toggle'; import { deprecatedCreateFlash as Flash } from './flash'; import { defaultAutocompleteConfig } from './gfm_auto_complete'; -import CommentTypeToggle from './comment_type_toggle'; import GLForm from './gl_form'; -import loadAwardsHandler from './awards_handler'; -import Autosave from './autosave'; -import TaskList from './task_list'; +import axios from './lib/utils/axios_utils'; import { isInViewport, getPagePath, @@ -36,7 +34,9 @@ import { isInMRPage, } from './lib/utils/common_utils'; import { localTimeAgo } from './lib/utils/datetime_utility'; +import { getLocationHash } from './lib/utils/url_utility'; import { sprintf, s__, __ } from './locale'; +import TaskList from './task_list'; window.autosize = Autosize; @@ -904,18 +904,7 @@ export default class Notes { // DiffNote form.find('#note_position').val(dataHolder.attr('data-position')); - form - .prepend( - `${escape(gon.current_user_fullname)}`, - ) - .append('') - .find('.js-close-discussion-note-form') - .show() - .removeClass('hide'); + form.append('').find('.js-close-discussion-note-form').show().removeClass('hide'); form.find('.js-note-target-close').remove(); form.find('.js-note-new-discussion').remove(); this.setupNoteForm(form); -- cgit v1.2.3