diff options
Diffstat (limited to 'app/assets/javascripts/mr_notes/init_notes.js')
-rw-r--r-- | app/assets/javascripts/mr_notes/init_notes.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/mr_notes/init_notes.js b/app/assets/javascripts/mr_notes/init_notes.js index f5f10aa4a9b..d968c125068 100644 --- a/app/assets/javascripts/mr_notes/init_notes.js +++ b/app/assets/javascripts/mr_notes/init_notes.js @@ -23,6 +23,7 @@ export default () => { } const notesFilterProps = getNotesFilterData(el); + const notesDataset = el.dataset; // eslint-disable-next-line no-new new Vue({ @@ -32,8 +33,10 @@ export default () => { NotesApp, }, store, + provide: { + reportAbusePath: notesDataset.reportAbusePath, + }, data() { - const notesDataset = el.dataset; const noteableData = JSON.parse(notesDataset.noteableData); noteableData.noteableType = notesDataset.noteableType; noteableData.targetType = notesDataset.targetType; |