Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/users/profile/actions/index.js')
-rw-r--r--app/assets/javascripts/users/profile/actions/index.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/assets/javascripts/users/profile/actions/index.js b/app/assets/javascripts/users/profile/actions/index.js
new file mode 100644
index 00000000000..37a3faf82a5
--- /dev/null
+++ b/app/assets/javascripts/users/profile/actions/index.js
@@ -0,0 +1,25 @@
+import Vue from 'vue';
+import { GlToast } from '@gitlab/ui';
+import UserActionsApp from './components/user_actions_app.vue';
+
+export const initUserActionsApp = () => {
+ const mountingEl = document.querySelector('.js-user-profile-actions');
+
+ if (!mountingEl) return false;
+
+ const { userId } = mountingEl.dataset;
+
+ Vue.use(GlToast);
+
+ return new Vue({
+ el: mountingEl,
+ name: 'UserActionsRoot',
+ render(createElement) {
+ return createElement(UserActionsApp, {
+ props: {
+ userId,
+ },
+ });
+ },
+ });
+};