Skip to content

Commit

Permalink
Hide default client selection in user settings if user has only one c…
Browse files Browse the repository at this point in the history
…lient to choose from
  • Loading branch information
solth committed Nov 8, 2024
1 parent 0d100bc commit 4b40539
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@
onchange="toggleSave()" required="#{empty param['editForm:saveButtonToggler']}"
redisplay="true"/>
</h:panelGroup>
<div>
<h:panelGroup layout="block"
id="defaultClientWrapper"
rendered="#{UserForm.userObject.clients.size() gt 1}">
<p:outputLabel for="defaultClient"
value="#{msgs['defaultClient']}"
title="#{msgs['defaultClient']}"/>
Expand All @@ -139,7 +141,7 @@
<p:ajax event="change"
oncomplete="toggleSave()"/>
</p:selectOneMenu>
</div>
</h:panelGroup>
<div>
<!-- table size -->
<p:outputLabel for="table-size" value="#{msgs.tableSize}" />
Expand Down

0 comments on commit 4b40539

Please sign in to comment.