Skip to content

Commit

Permalink
UI enhancements/fixes (#2754)
Browse files Browse the repository at this point in the history
- disallow collapsing pipeline configs if it's only one config
- do not show name if only one config
  • Loading branch information
qwerty287 authored Nov 5, 2023
1 parent 9e10100 commit a417cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/views/repo/pipeline/PipelineConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a417cca

Please sign in to comment.