mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
34 lines
1.0 KiB
Svelte
34 lines
1.0 KiB
Svelte
<script lang="ts">
|
|
import { FlowStatusModule } from '$lib/gen'
|
|
import { faHourglassHalf } from '@fortawesome/free-solid-svg-icons'
|
|
import { Icon } from 'svelte-awesome'
|
|
import { Badge } from './common'
|
|
|
|
export let type: FlowStatusModule.type
|
|
</script>
|
|
|
|
{#if type == FlowStatusModule.type.WAITING_FOR_EVENTS}
|
|
<span class="italic text-waiting">
|
|
<Icon class=" mr-2" data={faHourglassHalf} />
|
|
Waiting to be resumed by resume events such as approvals
|
|
</span>
|
|
{:else if type == FlowStatusModule.type.WAITING_FOR_PRIOR_STEPS}
|
|
<span class="italic text-gray-600">
|
|
<Icon data={faHourglassHalf} class="mr-2" />
|
|
Waiting for prior steps to complete
|
|
</span>
|
|
{:else if type == FlowStatusModule.type.WAITING_FOR_EXECUTOR}
|
|
<span class="italic text-gray-600">
|
|
<Icon data={faHourglassHalf} class="mr-2" />
|
|
Job is ready to be executed and will be picked up by the next available worker
|
|
</span>
|
|
{:else if type == FlowStatusModule.type.SUCCESS}
|
|
<Badge color="green">Success</Badge>
|
|
{/if}
|
|
|
|
<style>
|
|
.text-waiting {
|
|
color: #c76bf2;
|
|
}
|
|
</style>
|