electron app starting

This commit is contained in:
Jan Prochazka
2021-12-16 11:46:33 +01:00
parent 0a7c56dace
commit e636987f31
60 changed files with 132 additions and 129 deletions

View File

@@ -81,8 +81,8 @@
const handleRunnerDone = () => {
busy = false;
if (refreshArchiveFolderRef.get()) {
axiosInstance.post('archive/refresh-folders', {});
axiosInstance.post('archive/refresh-files', { folder: refreshArchiveFolderRef.get() });
axiosInstance().post('archive/refresh-folders', {});
axiosInstance().post('archive/refresh-files', { folder: refreshArchiveFolderRef.get() });
$currentArchive = refreshArchiveFolderRef.get();
$selectedWidget = 'archive';
}
@@ -108,7 +108,7 @@
const script = await createImpExpScript($extensions, values);
executeNumber += 1;
let runid = runnerId;
const resp = await axiosInstance.post('runners/start', { script });
const resp = await axiosInstance().post('runners/start', { script });
runid = resp.data.runid;
runnerId = runid;
@@ -120,7 +120,7 @@
};
const handleCancel = () => {
axiosInstance.post('runners/cancel', {
axiosInstance().post('runners/cancel', {
runid: runnerId,
});
};