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

delete_label_modal.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cf7c9e7734f16ad85fac3b0862417046501baef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Vue from 'vue';
import DeleteLabelModal from '~/vue_shared/components/delete_label_modal.vue';

const mountDeleteLabelModal = (optionalProps) =>
  new Vue({
    render(h) {
      return h(DeleteLabelModal, {
        props: {
          selector: '.js-delete-label-modal-button',
          ...optionalProps,
        },
      });
    },
  }).$mount();

export default (optionalProps = {}) => mountDeleteLabelModal(optionalProps);