mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-05-19 08:48:08 +00:00
cab996608e
Co-authored-by: 6543 <6543@obermui.de>
28 lines
764 B
Vue
28 lines
764 B
Vue
<template>
|
|
<div
|
|
class="flex items-center justify-center"
|
|
:title="$t('repo.pipeline.status.status', { status: $t(`repo.pipeline.status.${status}`) })"
|
|
>
|
|
<Icon
|
|
:name="`status-${status}`"
|
|
:class="{
|
|
'text-red-400': pipelineStatusColors[status] === 'red',
|
|
'text-gray-400': pipelineStatusColors[status] === 'gray',
|
|
'text-lime-400': pipelineStatusColors[status] === 'green',
|
|
'text-blue-400': pipelineStatusColors[status] === 'blue',
|
|
}"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import Icon from '~/components/atomic/Icon.vue';
|
|
import { PipelineStatus } from '~/lib/api/types';
|
|
|
|
import { pipelineStatusColors } from './pipeline-status';
|
|
|
|
defineProps<{
|
|
status: PipelineStatus;
|
|
}>();
|
|
</script>
|