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

index.js « details « bulk_imports « import « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca5de576536e88799bf9e02614cf4eb172a80a67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import Vue from 'vue';
import BulkImportDetailsApp from '~/import/details/components/bulk_import_details_app.vue';

export const initBulkImportDetails = () => {
  const el = document.querySelector('.js-bulk-import-details');

  if (!el) {
    return null;
  }

  const { failuresPath } = el.dataset;

  return new Vue({
    el,
    name: 'BulkImportDetailsRoot',
    provide: {
      failuresPath,
    },
    render(createElement) {
      return createElement(BulkImportDetailsApp);
    },
  });
};

initBulkImportDetails();