Skip to content

Commit

Permalink
Move alerts above tabs (#2446)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman authored Nov 27, 2024
1 parent b3c8d94 commit 833340f
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions src/lib/layouts/workflow-header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,35 @@
</AccordionLight>
{/if}
<WorkflowDetails />
{#if cancelInProgress}
<div in:fly={{ duration: 200, delay: 100 }}>
<Alert
icon="info"
intent="info"
title={translate('workflows.cancel-request-sent')}
>
{translate('workflows.cancel-request-sent-description')}
</Alert>
</div>
{/if}
{#if workflowHasBeenReset}
<div in:fly={{ duration: 200, delay: 100 }}>
<Alert
icon="info"
intent="info"
data-testid="workflow-reset-alert"
title={translate('workflows.reset-success-alert-title')}
>
You can find the resulting Workflow Execution <Link
href={routeForEventHistory({
namespace,
workflow: $workflowRun?.workflow?.id,
run: $resetWorkflows[$workflowRun?.workflow?.runId],
})}>here</Link
>.
</Alert>
</div>
{/if}
<Tabs>
<TabList class="flex flex-wrap gap-6 pb-1 pt-4" label="workflow detail">
<Tab
Expand Down Expand Up @@ -240,34 +269,4 @@
/>
</TabList>
</Tabs>

{#if cancelInProgress}
<div in:fly={{ duration: 200, delay: 100 }}>
<Alert
icon="info"
intent="info"
title={translate('workflows.cancel-request-sent')}
>
{translate('workflows.cancel-request-sent-description')}
</Alert>
</div>
{/if}
{#if workflowHasBeenReset}
<div in:fly={{ duration: 200, delay: 100 }}>
<Alert
icon="info"
intent="info"
data-testid="workflow-reset-alert"
title={translate('workflows.reset-success-alert-title')}
>
You can find the resulting Workflow Execution <Link
href={routeForEventHistory({
namespace,
workflow: $workflowRun?.workflow?.id,
run: $resetWorkflows[$workflowRun?.workflow?.runId],
})}>here</Link
>.
</Alert>
</div>
{/if}
</header>

0 comments on commit 833340f

Please sign in to comment.