24 lines
550 B
JavaScript
24 lines
550 B
JavaScript
|
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;
|
||
|
}
|
||
|
|
||
|
const { svgPath, inviteMembersPath, isDismissedKey, trackLabel } = el.dataset;
|
||
|
|
||
|
return new Vue({
|
||
|
el,
|
||
|
provide: {
|
||
|
svgPath,
|
||
|
inviteMembersPath,
|
||
|
isDismissedKey,
|
||
|
trackLabel,
|
||
|
},
|
||
|
render: createElement => createElement(InviteMembersBanner),
|
||
|
});
|
||
|
}
|