summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/admin/topics/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/admin/topics/index.js')
-rw-r--r--app/assets/javascripts/admin/topics/index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/admin/topics/index.js b/app/assets/javascripts/admin/topics/index.js
new file mode 100644
index 00000000000..8fbcadf3369
--- /dev/null
+++ b/app/assets/javascripts/admin/topics/index.js
@@ -0,0 +1,22 @@
+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);
+ },
+ });
+};