diff options
Diffstat (limited to 'app/assets/javascripts/mr_more_dropdown.js')
-rw-r--r-- | app/assets/javascripts/mr_more_dropdown.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/mr_more_dropdown.js b/app/assets/javascripts/mr_more_dropdown.js index ca50028a93a..4a9e10be5ad 100644 --- a/app/assets/javascripts/mr_more_dropdown.js +++ b/app/assets/javascripts/mr_more_dropdown.js @@ -1,4 +1,5 @@ import Vue from 'vue'; +import { initReportAbuse } from '~/projects/report_abuse'; import MrMoreDropdown from '~/vue_shared/components/mr_more_dropdown.vue'; export const initMrMoreDropdown = () => { @@ -37,6 +38,9 @@ export const initMrMoreDropdown = () => { reportAbusePath: el.dataset.reportAbusePath, showSummaryNotesToggle: Boolean(document.querySelector('#js-summary-notes')), }, + beforeCreate() { + initReportAbuse(); + }, render: (createElement) => createElement(MrMoreDropdown, { props: { |