mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
UI enhancements/fixes (#2754)
- disallow collapsing pipeline configs if it's only one config - do not show name if only one config
This commit is contained in:
parent
9e10100ad6
commit
a417cca25b
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@
|
|||
<Panel
|
||||
v-for="pipelineConfig in pipelineConfigs || []"
|
||||
:key="pipelineConfig.hash"
|
||||
collapsable
|
||||
:collapsable="pipelineConfigs && pipelineConfigs.length > 1"
|
||||
collapsed-by-default
|
||||
:title="pipelineConfig.name"
|
||||
:title="pipelineConfigs && pipelineConfigs.length > 1 ? pipelineConfig.name : ''"
|
||||
>
|
||||
<SyntaxHighlight class="font-mono whitespace-pre overflow-auto" language="yaml" :code="pipelineConfig.data" />
|
||||
</Panel>
|
||||
|
|
Loading…
Reference in a new issue