diff options
Diffstat (limited to 'app/assets/javascripts/users/profile/actions/index.js')
-rw-r--r-- | app/assets/javascripts/users/profile/actions/index.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/assets/javascripts/users/profile/actions/index.js b/app/assets/javascripts/users/profile/actions/index.js index 37a3faf82a5..e1f9352966b 100644 --- a/app/assets/javascripts/users/profile/actions/index.js +++ b/app/assets/javascripts/users/profile/actions/index.js @@ -7,17 +7,29 @@ export const initUserActionsApp = () => { if (!mountingEl) return false; - const { userId } = mountingEl.dataset; + const { + userId, + rssSubscriptionPath, + reportAbusePath, + reportedUserId, + reportedFromUrl, + } = mountingEl.dataset; Vue.use(GlToast); return new Vue({ el: mountingEl, name: 'UserActionsRoot', + provide: { + reportAbusePath, + }, render(createElement) { return createElement(UserActionsApp, { props: { userId, + rssSubscriptionPath, + reportedUserId: reportedUserId ? parseInt(reportedUserId, 10) : null, + reportedFromUrl, }, }); }, |