Skip to content

Commit

Permalink
Move alerts above tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman committed Nov 27, 2024
1 parent 7f570dd commit 8ef920c
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 8ef920c

Please sign in to comment.