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

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

22 lines
461 B
JavaScript
Raw Normal View History

2022-07-23 23:45:48 +05:30
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),
});
};