mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
isGeneratedScript TODO
This commit is contained in:
parent
6c8eccd369
commit
6e041e9eed
@ -148,8 +148,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
start_meta: true,
|
||||
async start({ script }) {
|
||||
if (process.env.DISABLE_SHELL) {
|
||||
async start({ script, isGeneratedScript }) {
|
||||
if (!isGeneratedScript && process.env.DISABLE_SHELL) {
|
||||
return { errorMessage: 'Shell is disabled' };
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@
|
||||
const script = await createImpExpScript($extensions, values);
|
||||
executeNumber += 1;
|
||||
let runid = runnerId;
|
||||
const resp = await apiCall('runners/start', { script });
|
||||
const resp = await apiCall('runners/start', { script, isGeneratedScript: true });
|
||||
runid = resp.runid;
|
||||
runnerId = runid;
|
||||
|
||||
|
@ -37,9 +37,9 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import ToolStripCommandButton from '../buttons/ToolStripCommandButton.svelte';
|
||||
import ToolStripContainer from '../buttons/ToolStripContainer.svelte';
|
||||
import ToolStripSaveButton from '../buttons/ToolStripSaveButton.svelte';
|
||||
import ToolStripCommandButton from '../buttons/ToolStripCommandButton.svelte';
|
||||
import ToolStripContainer from '../buttons/ToolStripContainer.svelte';
|
||||
import ToolStripSaveButton from '../buttons/ToolStripSaveButton.svelte';
|
||||
|
||||
import invalidateCommands from '../commands/invalidateCommands';
|
||||
import registerCommand from '../commands/registerCommand';
|
||||
|
@ -44,7 +44,7 @@ export async function exportQuickExportFile(dataName, reader, format, columnMap
|
||||
script.copyStream(sourceVar, targetVar, colmapVar);
|
||||
script.put();
|
||||
|
||||
const resp = await apiCall('runners/start', { script: script.getScript() });
|
||||
const resp = await apiCall('runners/start', { script: script.getScript(), isGeneratedScript: true });
|
||||
const runid = resp.runid;
|
||||
let isCanceled = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user