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

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

24 lines
380 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;
}
2022-06-21 17:19:12 +05:30
const { path, name } = el.dataset;
2022-05-07 20:08:51 +05:30
return new Vue({
el,
provide: {
path,
2022-06-21 17:19:12 +05:30
name,
2022-05-07 20:08:51 +05:30
},
render(h) {
return h(RemoveAvatar);
},
});
};