mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 18:56:00 +00:00
quick export on web
This commit is contained in:
@@ -4,7 +4,7 @@ import { showSnackbar, showSnackbarInfo, showSnackbarError, closeSnackbar } from
|
||||
import resolveApi from './resolveApi';
|
||||
import { apiCall, apiOff, apiOn } from './api';
|
||||
|
||||
export async function exportElectronFile(dataName, reader, format) {
|
||||
export async function exportQuickExportFile(dataName, reader, format) {
|
||||
const electron = getElectron();
|
||||
|
||||
let filePath;
|
||||
@@ -17,7 +17,7 @@ export async function exportElectronFile(dataName, reader, format) {
|
||||
properties: ['showOverwriteConfirmation'],
|
||||
});
|
||||
} else {
|
||||
const resp = await apiCall('files/generate-uploads-file');
|
||||
const resp = await apiCall('files/generate-uploads-file', { extension: format.extension });
|
||||
filePath = resp.filePath;
|
||||
pureFileName = resp.fileName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user