Make Service Icons work as enum was wrong (#3148)

make #3078 work as enum was wrong.


![image](https://github.com/woodpecker-ci/woodpecker/assets/24977596/933cf69d-9884-4e29-ac7b-21b58a52b870)
This commit is contained in:
6543 2024-01-09 07:30:43 +01:00 committed by GitHub
parent 12df59d0ec
commit 5715bd1027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

1
web/components.d.ts vendored
View file

@ -76,6 +76,7 @@ declare module 'vue' {
InputField: typeof import('./src/components/form/InputField.vue')['default'] InputField: typeof import('./src/components/form/InputField.vue')['default']
IPhGitlabLogoSimpleFill: typeof import('~icons/ph/gitlab-logo-simple-fill')['default'] IPhGitlabLogoSimpleFill: typeof import('~icons/ph/gitlab-logo-simple-fill')['default']
ISimpleIconsGitea: typeof import('~icons/simple-icons/gitea')['default'] ISimpleIconsGitea: typeof import('~icons/simple-icons/gitea')['default']
ISvgSpinners180RingWithBg: typeof import('~icons/svg-spinners/180-ring-with-bg')['default']
ITeenyiconsGitSolid: typeof import('~icons/teenyicons/git-solid')['default'] ITeenyiconsGitSolid: typeof import('~icons/teenyicons/git-solid')['default']
ITeenyiconsRefreshOutline: typeof import('~icons/teenyicons/refresh-outline')['default'] ITeenyiconsRefreshOutline: typeof import('~icons/teenyicons/refresh-outline')['default']
IVaadinQuestionCircleO: typeof import('~icons/vaadin/question-circle-o')['default'] IVaadinQuestionCircleO: typeof import('~icons/vaadin/question-circle-o')['default']

View file

@ -109,7 +109,7 @@
}" }"
@click="$emit('update:selected-step-id', step.pid)" @click="$emit('update:selected-step-id', step.pid)"
> >
<PipelineStatusIcon :service="step.type == StepType.Service" :status="step.state" class="!h-4 !w-4" /> <PipelineStatusIcon :service="step.type === StepType.Service" :status="step.state" class="!h-4 !w-4" />
<span class="truncate">{{ step.name }}</span> <span class="truncate">{{ step.name }}</span>
<PipelineStepDuration :step="step" /> <PipelineStepDuration :step="step" />
</button> </button>

View file

@ -149,9 +149,9 @@ export type PipelineFeed = Pipeline & {
}; };
export enum StepType { export enum StepType {
Clone = 1, Clone = 'clone',
Service, Service = 'service',
Plugin, Plugin = 'plugin',
Commands, Commands = 'commands',
Cache, Cache = 'cache',
} }