debian-mirror-gitlab/app/assets/javascripts/projects/terraform_notification/index.js

19 lines
421 B
JavaScript
Raw Normal View History

2021-09-30 23:02:18 +05:30
import Vue from 'vue';
import TerraformNotification from './components/terraform_notification.vue';
export default () => {
const el = document.querySelector('.js-terraform-notification');
if (!el) {
return false;
}
const { projectId } = el.dataset;
return new Vue({
el,
render: (createElement) =>
createElement(TerraformNotification, { props: { projectId: Number(projectId) } }),
});
};