Skip to content

Commit

Permalink
Icon selection only visible if there is more than one to select from
Browse files Browse the repository at this point in the history
  • Loading branch information
strangelookingnerd committed Sep 17, 2024
1 parent 8ac5b9d commit a238ffd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/main/resources/hudson/model/Job/configure.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ THE SOFTWARE.
<f:entry title="${%Description}" help="${app.markupFormatter.helpUrl}">
<f:textarea name="description" value="${it.description}" codemirror-mode="${app.markupFormatter.codeMirrorMode}" codemirror-config="${app.markupFormatter.codeMirrorConfig}" previewEndpoint="/markupFormatter/previewDescription"/>
</f:entry>
<f:dropdownDescriptorSelector title="${%Icon}" field="icon" />
<j:invokeStatic var="icons" className="hudson.model.JobIconDescriptor" method="all" />
<j:if test="${icons.size() gt 1}">
<f:dropdownDescriptorSelector title="${%Icon}" field="icon" descriptors="${icons}" />
</j:if>
</div>

<f:descriptorList field="properties" descriptors="${h.getJobPropertyDescriptors(it)}" forceRowSet="true"/>
Expand Down

0 comments on commit a238ffd

Please sign in to comment.