From 36c792f44e2388720f1fa55cc217cbfd064c914f Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Fri, 17 Feb 2023 13:57:30 +0100 Subject: [PATCH] excel import fix --- .../web/src/impexp/ImportExportConfigurator.svelte | 3 ++- packages/web/src/plugins/PluginsProvider.svelte | 5 ----- plugins/dbgate-plugin-excel/src/frontend/index.js | 11 ++--------- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/packages/web/src/impexp/ImportExportConfigurator.svelte b/packages/web/src/impexp/ImportExportConfigurator.svelte index 982253d6..daa58a33 100644 --- a/packages/web/src/impexp/ImportExportConfigurator.svelte +++ b/packages/web/src/impexp/ImportExportConfigurator.svelte @@ -22,7 +22,7 @@ for (const file of getAsArray(files)) { const format = findFileFormat(extensions, storage); if (format) { - await (format.addFileToSourceList || addFileToSourceListDefault)(file, newSources, newValues); + await (format.addFileToSourceList || addFileToSourceListDefault)(file, newSources, newValues, apiCall); } } newValues['sourceList'] = [...(values.sourceList || []).filter(x => !newSources.includes(x)), ...newSources]; @@ -58,6 +58,7 @@ import { showModal } from '../modals/modalTools'; import { findFileFormat } from '../plugins/fileformats'; import { extensions } from '../stores'; + import { apiCall } from '../utility/api'; import getAsArray from '../utility/getAsArray'; import { useConnectionInfo, useDatabaseInfo } from '../utility/metadataLoaders'; import { setUploadListener } from '../utility/uploadFiles'; diff --git a/packages/web/src/plugins/PluginsProvider.svelte b/packages/web/src/plugins/PluginsProvider.svelte index 28580b06..42a10bce 100644 --- a/packages/web/src/plugins/PluginsProvider.svelte +++ b/packages/web/src/plugins/PluginsProvider.svelte @@ -1,8 +1,4 @@