Skip to content

Commit

Permalink
do not link to invocations for workflow that has never run
Browse files Browse the repository at this point in the history
switch icon, tweak wording
  • Loading branch information
martenson committed Mar 6, 2024
1 parent bc78b6f commit 69e985e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions client/src/components/Workflow/WorkflowInvocationsCount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,24 @@ onMounted(initCounts);

<template>
<div class="workflow-invocations-count d-flex align-items-center flex-gapx-1">
<BBadge v-if="count != undefined && count === 0" pill class="list-view">
<FontAwesomeIcon :icon="faClock" fixed-width />
<span>never run</span>
</BBadge>
<BBadge
v-if="count != undefined"
v-else-if="count != undefined && count > 0"
v-b-tooltip.hover.noninteractive
pill
:title="localize('View workflow invocations')"
class="outline-badge cursor-pointer list-view"
:to="`/workflows/${props.workflow.id}/invocations`">
<FontAwesomeIcon :icon="faSitemap" fixed-width />
<FontAwesomeIcon :icon="faClock" fixed-width />

<span v-if="count > 0">
<span>
workflow runs:
{{ count }}
</span>
<span v-else> workflow never run </span>
</BBadge>

<BButton
v-else
v-b-tooltip.hover.noninteractive
Expand All @@ -57,7 +59,7 @@ onMounted(initCounts);
variant="link"
size="sm"
:to="`/workflows/${props.workflow.id}/invocations`">
<FontAwesomeIcon :icon="faSitemap" fixed-width />
<FontAwesomeIcon :icon="faClock" fixed-width />
</BButton>
</div>
</template>

0 comments on commit 69e985e

Please sign in to comment.