File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 4
4
-->
5
5
{{- $size := Iif .size .size 16 -}}
6
6
{{- $className := Iif .className .className "" -}}
7
- <span class="tw-flex tw-items-center" data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
7
+ <span data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
8
8
{{if eq .status "success"}}
9
9
{{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
10
10
{{else if eq .status "skipped"}}
Original file line number Diff line number Diff line change 6
6
import {SvgIcon} from '../svg.ts';
7
7
8
8
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,
12
12
localeStatus?: string,
13
13
}>(), {
14
14
size: 16,
15
- className: undefined ,
15
+ className: '' ,
16
16
localeStatus: undefined,
17
17
});
18
18
</script>
19
19
20
20
<template>
21
- <span class="tw-flex tw-items-center" :data-tooltip-content="localeStatus" v-if="status">
21
+ <span :data-tooltip-content="localeStatus ?? status " v-if="status">
22
22
<SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
23
23
<SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
24
24
<SvgIcon name="octicon-stop" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'cancelled'"/>
Original file line number Diff line number Diff line change @@ -551,6 +551,7 @@ export function initRepositoryActionView() {
551
551
552
552
.action-info-summary-title {
553
553
display : flex ;
554
+ align-items : center ;
554
555
}
555
556
556
557
.action-info-summary-title-text {
You can’t perform that action at this time.
0 commit comments