This commit is contained in:
dieriba
2025-11-14 22:08:07 +01:00
parent 596821b6d4
commit 453031cc8a
4 changed files with 13 additions and 1 deletions

View File

@@ -1 +1 @@
0772f05a60809e9d9a11c25173a246724357520c
3e7a82db7a8716d76557c4994a79910aaf4d765c

View File

@@ -18720,6 +18720,10 @@ components:
$ref: "#/components/schemas/ScriptArgs"
retry:
$ref: "../../openflow.openapi.yaml#/components/schemas/Retry"
active_mode:
type: boolean
default: true
description: If set to false, each incomming event will be suspend job until ran manually or set it to true
required:
- path
@@ -18746,6 +18750,10 @@ components:
$ref: "#/components/schemas/ScriptArgs"
retry:
$ref: "../../openflow.openapi.yaml#/components/schemas/Retry"
active_mode:
type: boolean
default: true
description: If set to false, each incomming event will be suspend job until ran manually or set it to true
required:
- path
- script_path

View File

@@ -25,6 +25,7 @@
import Tab from '$lib/components/common/tabs/Tab.svelte'
import TriggerRetriesAndErrorHandler from '../TriggerRetriesAndErrorHandler.svelte'
import { saveEmailTriggerFromCfg } from './utils'
import TriggerStateToggle from '../TriggerStateToggle.svelte'
let {
useDrawer = true,
@@ -298,6 +299,8 @@
</Section>
{/if}
<TriggerStateToggle triggerPath={path} jobTriggerKind={'email'} bind:active_mode />
<EmailTriggerEditorConfigSection
initialTriggerPath={initialPath}
bind:local_part

View File

@@ -29,6 +29,7 @@ export async function saveEmailTriggerFromCfg(
workspaced_local_part: routeCfg.workspaced_local_part,
error_handler_path: routeCfg.error_handler_path,
error_handler_args: routeCfg.error_handler_path ? routeCfg.error_handler_args : undefined,
active_mode: routeCfg.active_mode,
retry: routeCfg.retry
}
try {