debian-mirror-gitlab/app/assets/javascripts/groups/init_invite_members_banner.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
643 B
JavaScript
Raw Normal View History

2020-11-24 15:15:51 +05:30
import Vue from 'vue';
import InviteMembersBanner from '~/groups/components/invite_members_banner.vue';
export default function initInviteMembersBanner() {
const el = document.querySelector('.js-group-invite-members-banner');
if (!el) {
return false;
}
2021-11-11 11:23:49 +05:30
const {
svgPath,
inviteMembersPath,
trackLabel,
calloutsPath,
calloutsFeatureId,
groupId,
} = el.dataset;
2020-11-24 15:15:51 +05:30
return new Vue({
el,
provide: {
svgPath,
inviteMembersPath,
trackLabel,
2021-11-11 11:23:49 +05:30
calloutsPath,
calloutsFeatureId,
groupId,
2020-11-24 15:15:51 +05:30
},
2021-03-08 18:12:59 +05:30
render: (createElement) => createElement(InviteMembersBanner),
2020-11-24 15:15:51 +05:30
});
}