diff --git a/frontend/src/lib/components/CronInput.svelte b/frontend/src/lib/components/CronInput.svelte index bf4bd0fca6..cee391930f 100644 --- a/frontend/src/lib/components/CronInput.svelte +++ b/frontend/src/lib/components/CronInput.svelte @@ -222,7 +222,7 @@ +
+ +
@@ -233,7 +235,7 @@ > Set Primary Schedule - {#if initialPrimarySchedule != false && !newItem} + {#if initialPrimarySchedule != undefined && initialPrimarySchedule != false && !newItem} @@ -244,6 +246,14 @@ {/if} + diff --git a/frontend/src/lib/components/toast.ts b/frontend/src/lib/components/toast.ts index 88b2e3e9fb..8c1afb1a31 100644 --- a/frontend/src/lib/components/toast.ts +++ b/frontend/src/lib/components/toast.ts @@ -1,5 +1,5 @@ //regex that match path starting with u/ or f/ and with at least 2 / -const pathRegex = /\b(u|f)\/[^\/]+\/[^\/]+\b/g +const pathRegex = /\b(u|f)\/[^\/\s]+\/[^\/\s]+\b/g export function processMessage(message: string): string { return message.replaceAll(pathRegex, (path) => { diff --git a/frontend/src/lib/components/triggers/RoutesPanel.svelte b/frontend/src/lib/components/triggers/RoutesPanel.svelte index 2641fb1f78..12feac5bd8 100644 --- a/frontend/src/lib/components/triggers/RoutesPanel.svelte +++ b/frontend/src/lib/components/triggers/RoutesPanel.svelte @@ -48,16 +48,20 @@ />
- {#if !newItem && ($userStore?.is_admin || $userStore?.is_super_admin)} - + {#if !newItem} + {#if $userStore?.is_admin || $userStore?.is_super_admin} + + {:else} + + {/if} {/if} {#if httpTriggers} @@ -93,7 +97,7 @@ {#if newItem} - Deploy the {isFlow ? 'flow' : 'script'} to enable http routes triggers. + Deploy the {isFlow ? 'flow' : 'script'} to add http routes. {/if}