mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-26 16:02:36 +00:00
fix: fix webhooks urls after BASE_URL change
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
$: webhooks = isFlow ? computeFlowWebhooks(path) : computeScriptWebhooks(hash, path)
|
||||
|
||||
function computeScriptWebhooks(hash: string | undefined, path: string) {
|
||||
let base = `${$page.url.origin}/api/w/${$workspaceStore}/jobs/`
|
||||
let base = `${$page.url.origin}/api/w/${$workspaceStore}/jobs`
|
||||
return {
|
||||
async: {
|
||||
hash: `${base}/run/h/${hash}`,
|
||||
@@ -58,7 +58,7 @@
|
||||
}
|
||||
|
||||
function computeFlowWebhooks(path: string) {
|
||||
let base = `${$page.url.origin}/api/w/${$workspaceStore}/jobs/`
|
||||
let base = `${$page.url.origin}/api/w/${$workspaceStore}/jobs`
|
||||
|
||||
let urlAsync = `${base}/run/f/${path}`
|
||||
let urlSync = `${base}/run_wait_result/f/${path}`
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
let:close
|
||||
>
|
||||
<button
|
||||
title="Pick an interation"
|
||||
title="Pick an iteration"
|
||||
slot="trigger"
|
||||
id={`flow-editor-iteration picker-${index}`}
|
||||
type="button"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
export let disableAi: boolean = false
|
||||
export let wrapperNode: FlowModule | undefined = undefined
|
||||
export let borderColor: string | undefined = undefined
|
||||
export let hideId: boolean = false
|
||||
|
||||
const dispatch = createEventDispatcher<{
|
||||
insert: {
|
||||
@@ -94,7 +95,7 @@
|
||||
<div />
|
||||
<div class="flex-1 truncate"><pre>{label}</pre></div>
|
||||
<div class="flex items-center space-x-2">
|
||||
{#if id}
|
||||
{#if id && !hideId}
|
||||
<Badge color="indigo">{id}</Badge>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -549,14 +549,15 @@
|
||||
undefined,
|
||||
loopDepth,
|
||||
0,
|
||||
false,
|
||||
true,
|
||||
removable ? { module, index: i } : undefined,
|
||||
undefined,
|
||||
module.id,
|
||||
undefined,
|
||||
undefined,
|
||||
borderStatus,
|
||||
false,
|
||||
wrapper
|
||||
wrapper,
|
||||
true
|
||||
)
|
||||
)
|
||||
if (modules.length) {
|
||||
@@ -727,7 +728,8 @@
|
||||
module_status: FlowStatusModule['type'] | undefined,
|
||||
borderStatus: FlowStatusModule['type'] | undefined,
|
||||
center: boolean = true,
|
||||
wrapperNode: FlowModule | undefined = undefined
|
||||
wrapperNode: FlowModule | undefined = undefined,
|
||||
hideId: boolean = false
|
||||
): Node {
|
||||
const id = fixed_id ?? -idGenerator.next().value - 2 + (offset ?? 0)
|
||||
|
||||
@@ -765,7 +767,8 @@
|
||||
moving,
|
||||
center,
|
||||
disableAi,
|
||||
wrapperNode
|
||||
wrapperNode,
|
||||
hideId
|
||||
},
|
||||
cb: (e: string, detail: any) => {
|
||||
if (e == 'insert') {
|
||||
|
||||
Reference in New Issue
Block a user