Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « topics « admin « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 09e9b20f2206eb16478430f373ab39eb0d9b69fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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, name } = el.dataset;

  return new Vue({
    el,
    provide: {
      path,
      name,
    },
    render(h) {
      return h(RemoveAvatar);
    },
  });
};