summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/issuable/init_csv_import_export_buttons.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/issuable/init_csv_import_export_buttons.js')
-rw-r--r--app/assets/javascripts/issuable/init_csv_import_export_buttons.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/app/assets/javascripts/issuable/init_csv_import_export_buttons.js b/app/assets/javascripts/issuable/init_csv_import_export_buttons.js
deleted file mode 100644
index 83163e3c478..00000000000
--- a/app/assets/javascripts/issuable/init_csv_import_export_buttons.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import Vue from 'vue';
-import { parseBoolean } from '~/lib/utils/common_utils';
-import CsvImportExportButtons from './components/csv_import_export_buttons.vue';
-
-export default () => {
- const el = document.querySelector('.js-csv-import-export-buttons');
-
- if (!el) return null;
-
- const {
- showExportButton,
- showImportButton,
- issuableType,
- issuableCount,
- email,
- exportCsvPath,
- importCsvIssuesPath,
- containerClass,
- canEdit,
- projectImportJiraPath,
- maxAttachmentSize,
- showLabel,
- } = el.dataset;
-
- return new Vue({
- el,
- provide: {
- showExportButton: parseBoolean(showExportButton),
- showImportButton: parseBoolean(showImportButton),
- issuableType,
- email,
- importCsvIssuesPath,
- containerClass,
- canEdit: parseBoolean(canEdit),
- projectImportJiraPath,
- maxAttachmentSize,
- showLabel,
- },
- render(h) {
- return h(CsvImportExportButtons, {
- props: {
- exportCsvPath,
- issuableCount: parseInt(issuableCount, 10),
- },
- });
- },
- });
-};