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);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|