debian-mirror-gitlab/app/assets/javascripts/admin/topics/index.js

23 lines
362 B
JavaScript
Raw Normal View History

2022-05-07 20:08:51 +05:30
import Vue from 'vue';
import RemoveAvatar from './components/remove_avatar.vue';
export default () => {
const el = document.querySelector('.js-remove-topic-avatar');
if (!el) {
return false;
}
const { path } = el.dataset;
return new Vue({
el,
provide: {
path,
},
render(h) {
return h(RemoveAvatar);
},
});
};