Skip to content

Commit

Permalink
Merge pull request #2894 from squaregoldfish/2892-make-instrument-sel…
Browse files Browse the repository at this point in the history
…ector-drop-down-searchable

(#2892) Instrument selection drop-downs are searchable
  • Loading branch information
squaregoldfish authored Apr 10, 2024
2 parents 7808cea + 08d4b62 commit 458b7ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions WebApp/WebContent/data_file/file_list.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<h:panelGrid columns="3" cellpadding="5" class="buttonPanel contentList">
<p:outputLabel for="instrumentAdmin" value="Select Instrument:" />
<ui:fragment rendered="#{User.adminUser}">
<p:selectOneMenu id="instrumentAdmin"
<p:selectOneMenu id="instrumentAdmin" filter="true" filterMatchMode="contains"
value="#{dataFilesBean.currentInstrumentId}">
<f:selectItems value="#{dataFilesBean.instruments}" var="instrument"
itemValue="#{instrument.id}"
Expand All @@ -27,7 +27,7 @@
</p:selectOneMenu>
</ui:fragment>
<ui:fragment rendered="#{not User.adminUser}">
<p:selectOneMenu id="instrumentNonAdmin"
<p:selectOneMenu id="instrumentNonAdmin" filter="true" filterMatchMode="contains"
value="#{dataFilesBean.currentInstrumentId}">
<f:selectItems value="#{dataFilesBean.instruments}" var="instrument"
itemValue="#{instrument.id}"
Expand Down
4 changes: 2 additions & 2 deletions WebApp/WebContent/dataset/dataset_list.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
<h:panelGrid columns="3" cellpadding="5" class="buttonPanel contentList">
<p:outputLabel for="instrumentAdmin" value="Select Instrument:" />
<ui:fragment rendered="#{User.adminUser}">
<p:selectOneMenu id="instrumentAdmin"
<p:selectOneMenu id="instrumentAdmin" filter="true" filterMatchMode="contains"
value="#{dataSetsBean.currentInstrumentId}" onchange="updateList()">
<f:selectItems value="#{dataSetsBean.instruments}" var="instrument"
itemValue="#{instrument.id}"
Expand All @@ -188,7 +188,7 @@
</p:selectOneMenu>
</ui:fragment>
<ui:fragment rendered="#{not User.adminUser}">
<p:selectOneMenu id="instrumentNonAdmin"
<p:selectOneMenu id="instrumentNonAdmin" filter="true" filterMatchMode="contains"
value="#{dataSetsBean.currentInstrumentId}" onchange="updateList()">
<f:selectItems value="#{dataSetsBean.instruments}" var="instrument"
itemValue="#{instrument.id}"
Expand Down

0 comments on commit 458b7ba

Please sign in to comment.