fix(ui): a workflow with no runs says so instead of showing a dash
This commit is contained in:
1 file changed
+1
-1
@@ -263,7 +263,7 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
|
||||
<StatusDot tone="info" live />{{ row.running }} running
|
||||
</span>
|
||||
<span v-else-if="row.last_status" class="w-20 shrink-0 truncate" :title="`Latest run: ${statusLabel(row.last_status)}`">{{ statusLabel(row.last_status) }}</span>
|
||||
<span v-else class="w-20 shrink-0">–</span>
|
||||
<span v-else class="shrink-0">Never run</span>
|
||||
<span v-if="row.runs" class="h-1 flex-1 overflow-hidden rounded-full bg-border" role="img" :aria-label="`${delivered(row)} of ${row.runs ?? 0} runs delivered`" :title="`${delivered(row)} of ${row.runs ?? 0} runs delivered`">
|
||||
<span class="block h-full rounded-full bg-primary" :style="{ width: `${rate(delivered(row), row.runs) * 100}%` }" />
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user