Universal CSV Importer #70
|
|
@ -489,7 +489,8 @@ export const api = {
|
||||||
req(module ? `/csv/mappings?module=${encodeURIComponent(module)}` : '/csv/mappings'),
|
req(module ? `/csv/mappings?module=${encodeURIComponent(module)}` : '/csv/mappings'),
|
||||||
copyCsvMapping: (mappingId, body = null) =>
|
copyCsvMapping: (mappingId, body = null) =>
|
||||||
req(`/csv/mappings/${mappingId}/copy`, body ? json(body) : { method: 'POST' }),
|
req(`/csv/mappings/${mappingId}/copy`, body ? json(body) : { method: 'POST' }),
|
||||||
importCsv: async (file, module, mappingId) => {
|
/** Universal-CSV (Issue #21): file + module + mapping_id aus /csv/mappings */
|
||||||
|
importUniversalCsv: async (file, module, mappingId) => {
|
||||||
const fd = new FormData()
|
const fd = new FormData()
|
||||||
fd.append('file', file)
|
fd.append('file', file)
|
||||||
fd.append('module', module)
|
fd.append('module', module)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user