Skip to content

Commit

Permalink
Show line numbers in autocomplete search
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Feb 28, 2024
1 parent f9b9834 commit 57aae5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manage-gui/src/components/Autocomplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class Autocomplete extends React.PureComponent {
return <table className="result">
<thead>
<tr>
<th className="count"></th>
<th className="name">{I18n.t("metadata_autocomplete.name")}</th>
<th className="organization">{I18n.t("metadata_autocomplete.organization")}</th>
<th className="type">{I18n.t("metadata_autocomplete.type")}</th>
Expand All @@ -92,6 +93,7 @@ export default class Autocomplete extends React.PureComponent {
this.selectedRow = ref;
}
}}>
<td className="count">{index + 1}</td>
<td>{this.item(item.data.metaDataFields["name:en"] || item.data.metaDataFields["name:nl"], query)}</td>
<td>{this.item(item.data.metaDataFields["OrganizationName:en"] || item.data.metaDataFields["OrganizationName:nl"], query)}</td>
<td>{item.type}</td>
Expand Down

0 comments on commit 57aae5b

Please sign in to comment.