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:
qwerty287 2023-11-05 15:55:49 +01:00 committed by GitHub
parent 9e10100ad6
commit a417cca25b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>