diff --git a/frontend/src/lib/components/ScriptPicker.svelte b/frontend/src/lib/components/ScriptPicker.svelte index d4d6dd617150b..1e27883337768 100644 --- a/frontend/src/lib/components/ScriptPicker.svelte +++ b/frontend/src/lib/components/ScriptPicker.svelte @@ -26,6 +26,7 @@ export let kinds: Script['kind'][] = ['script'] export let disabled = false export let allowRefresh = false + export let allowEdit = true let items: { value: string; label: string }[] = [] let drawerViewer: Drawer @@ -126,14 +127,16 @@ {#if scriptPath !== undefined && scriptPath !== ''} {#if itemKind == 'flow'}
- + {#if allowEdit} + + {/if} + {#if allowEdit} + + {/if} + {#if allowEdit} + + {/if} + +
+ + +
+
+ 2 +
+

Create a token for this webhook

+ + If you generate a token, it will have a scope such that it can only be used to + trigger this {itemKind}. It is safe to share as it cannot be used to impersonate you. + Otherwise you may enter another token but beware that it will be shared with the external + application. + +
+
+
+
+ + +
+
+ + +
+
+
+ + +