mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +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
|
<Panel
|
||||||
v-for="pipelineConfig in pipelineConfigs || []"
|
v-for="pipelineConfig in pipelineConfigs || []"
|
||||||
:key="pipelineConfig.hash"
|
:key="pipelineConfig.hash"
|
||||||
collapsable
|
:collapsable="pipelineConfigs && pipelineConfigs.length > 1"
|
||||||
collapsed-by-default
|
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" />
|
<SyntaxHighlight class="font-mono whitespace-pre overflow-auto" language="yaml" :code="pipelineConfig.data" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
Loading…
Reference in a new issue