Skip to content

Commit 4156015

Browse files
committed
fix wrong type, fix wrong class name
1 parent 464006c commit 4156015

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web_src/js/components/ActionRunStatus.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
import {SvgIcon} from '../svg.ts';
77

88
withDefaults(defineProps<{
9-
status: '',
10-
size?: number,
11-
className?: string,
9+
status: 'success' | 'skipped' | 'waiting' | 'blocked' | 'running' | 'failure' | 'cancelled' | 'unknown',
10+
size: number,
11+
className: string,
1212
localeStatus?: string,
1313
}>(), {
1414
size: 16,
15-
className: undefined,
15+
className: '',
1616
localeStatus: undefined,
1717
});
1818
</script>
1919

2020
<template>
21-
<span class="tw-flex tw-items-center" :data-tooltip-content="localeStatus" v-if="status">
21+
<span class="tw-flex tw-items-center" :data-tooltip-content="localeStatus ?? status" v-if="status">
2222
<SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
2323
<SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
2424
<SvgIcon name="octicon-stop" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'cancelled'"/>

0 commit comments

Comments
 (0)