Skip to content

Commit

Permalink
Merge pull request kitodo#6316 from solth/trailing-comma-empty-filegroup
Browse files Browse the repository at this point in the history
Hide trailing comma when folder filegroup is empty
  • Loading branch information
solth authored Dec 3, 2024
2 parents 1df3698 + 74e2beb commit c744630
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<p:dataTable id="folderTable" var="folder" value="#{ProjectForm.folderList}"
disabled="#{ProjectForm.locked}">
<p:column headerText="#{msgs.metsfilegroups}">
<h:outputText value="#{folder.path}, #{folder.fileGroup}" />
<h:outputText value="#{folder.path}#{empty folder.fileGroup ? '' : ', '.concat(folder.fileGroup)}" />
</p:column>
<p:column>
<!-- edit button -->
Expand Down

0 comments on commit c744630

Please sign in to comment.