debian-mirror-gitlab/app/assets/javascripts/projects/clusters_deprecation_alert/index.js
2022-07-23 20:15:48 +02:00

21 lines
461 B
JavaScript

import Vue from 'vue';
import ClustersDeprecationAlert from './components/clusters_deprecation_alert.vue';
export default () => {
const el = document.querySelector('.js-clusters-deprecation-alert');
if (!el) {
return false;
}
const { message } = el.dataset;
return new Vue({
el,
name: 'ClustersDeprecationAlertRoot',
provide: {
message,
},
render: (createElement) => createElement(ClustersDeprecationAlert),
});
};