Skip to content

Commit fd38aca

Browse files
committed
add hideCallbackUrl check
1 parent 260a41b commit fd38aca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/components/workflow/workflow-callback.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
titles[callback.state] || translate('nexus.nexus-callback'),
4545
);
4646
const links = $derived(callback?.callback?.links || []);
47+
const hideCallbackUrl = $derived(links.length || link || !callbackUrl);
4748
</script>
4849

4950
<Alert icon="nexus" intent={failed ? 'error' : 'info'} {title}>
@@ -90,7 +91,7 @@
9091
</p>
9192
{/if}
9293
</div>
93-
{#if !link}
94+
{#if hideCallbackUrl}
9495
<p class="flex items-center gap-2">
9596
{translate('nexus.callback-url')}
9697
<Badge type="subtle">{callbackUrl}</Badge>

0 commit comments

Comments
 (0)