diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-24 21:17:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-24 21:17:30 +0300 |
commit | 0bf82aa5cb3b1ed826dd5c0d46331e17aa60d9e9 (patch) | |
tree | ee5a760877cce0189cc8e765a912a06942f3e4de /app/assets/javascripts/milestones | |
parent | efbf661c4224d481c57d0346e26983a805e5ec93 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/milestones')
-rw-r--r-- | app/assets/javascripts/milestones/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/milestones/index.js b/app/assets/javascripts/milestones/index.js index 9d210f7a6ec..8780d931588 100644 --- a/app/assets/javascripts/milestones/index.js +++ b/app/assets/javascripts/milestones/index.js @@ -4,6 +4,7 @@ import initDatePicker from '~/behaviors/date_picker'; import GLForm from '~/gl_form'; import { BV_SHOW_MODAL } from '~/lib/utils/constants'; import Milestone from '~/milestones/milestone'; +import { renderGFM } from '~/behaviors/markdown/render_gfm'; import Sidebar from '~/right_sidebar'; import MountMilestoneSidebar from '~/sidebar/mount_milestone_sidebar'; import Translate from '~/vue_shared/translate'; @@ -12,6 +13,9 @@ import DeleteMilestoneModal from './components/delete_milestone_modal.vue'; import PromoteMilestoneModal from './components/promote_milestone_modal.vue'; import eventHub from './event_hub'; +// See app/views/shared/milestones/_description.html.haml +export const MILESTONE_DESCRIPTION_ELEMENT = '.milestone-detail .description'; + export function initForm(initGFM = true) { new ZenMode(); // eslint-disable-line no-new initDatePicker(); @@ -34,6 +38,8 @@ export function initShow() { new Milestone(); // eslint-disable-line no-new new Sidebar(); // eslint-disable-line no-new new MountMilestoneSidebar(); // eslint-disable-line no-new + + renderGFM(document.querySelector(MILESTONE_DESCRIPTION_ELEMENT)); } export function initPromoteMilestoneModal() { |