SYNC: security fixes

This commit is contained in:
SPRINX0\prochazka
2025-06-12 13:49:23 +02:00
committed by Diflow
parent 3f37b2b728
commit cf3f95c952
4 changed files with 71 additions and 19 deletions

View File

@@ -52,6 +52,7 @@
import ToolStripSaveButton from '../buttons/ToolStripSaveButton.svelte';
import uuidv1 from 'uuid/v1';
import { tick } from 'svelte';
import { showSnackbarError } from '../utility/snackbar';
let busy = false;
let executeNumber = 0;
@@ -200,6 +201,11 @@
} else {
let runid = runnerId;
const resp = await apiCall('runners/start', { script });
if (resp.errorMessage) {
busy = false;
showSnackbarError(resp.errorMessage);
return;
}
runid = resp.runid;
runnerId = runid;
}