quick export on web

This commit is contained in:
Jan Prochazka
2022-03-10 10:23:33 +01:00
parent c26bc6d0e9
commit ddff3d2b89
7 changed files with 15 additions and 15 deletions

View File

@@ -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;
}