mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
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:
parent
12df59d0ec
commit
5715bd1027
3 changed files with 7 additions and 6 deletions
1
web/components.d.ts
vendored
1
web/components.d.ts
vendored
|
@ -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']
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue