schedule nits

This commit is contained in:
Ruben Fiszel
2024-11-29 17:01:20 +01:00
parent 75e9132817
commit 658f71ffe9
@@ -96,14 +96,6 @@
(schedule.args?.startup_duration as number) ?? appReportingStartupDuration
screenshotKind = (schedule.args?.kind as 'png' | 'pdf') ?? screenshotKind
args = schedule.args
? Object.fromEntries(
Object.entries(schedule.args).filter(
([key, _]) => key !== 'app_path' && key !== 'startup_duration' && key !== 'kind'
)
)
: {}
selectedTab =
flow.value.modules[1]?.value.type === 'script'
? flow.value.modules[1].value.path === notificationScripts.email.path
@@ -115,6 +107,17 @@
: 'custom'
: 'custom'
const nargs = schedule.args
? Object.fromEntries(
Object.entries(schedule.args).filter(
([key, _]) => key !== 'app_path' && key !== 'startup_duration' && key !== 'kind'
)
)
: {}
setTimeout(() => {
args = structuredClone(nargs)
})
customPath =
selectedTab === 'custom' &&
flow.value.modules[1]?.value.type === 'script' &&
@@ -511,7 +514,7 @@ export async function main(app_path: string, startup_duration = 5, kind: 'pdf' |
tooltip="Send a PDF or PNG preview of any app at a given schedule"
documentationLink="https://www.windmill.dev/docs/apps/schedule_reports"
><svelte:fragment slot="actions">
<div class="mr-4 center-center -mt-2">
<div class="mr-4 center-center">
<Toggle
checked={appReportingEnabled}
options={{ right: 'enable', left: 'disable' }}