Skip to content

Commit

Permalink
Merge pull request #962 from EyeSeeTea/feat/search-metadata-by-id-and…
Browse files Browse the repository at this point in the history
…-code

Search metadata by id and code
  • Loading branch information
MiquelAdell authored Jul 1, 2024
2 parents 8f9a7ff + 364d6da commit 92101a9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-06-10T12:10:57.544Z\n"
"PO-Revision-Date: 2024-06-10T12:10:57.544Z\n"
"POT-Creation-Date: 2024-06-26T16:20:27.188Z\n"
"PO-Revision-Date: 2024-06-26T16:20:27.188Z\n"

msgid ""
"THIS NEW RELEASE INCLUDES SHARING SETTINGS PER INSTANCES. FOR THIS VERSION "
Expand Down Expand Up @@ -523,7 +523,7 @@ msgstr ""
msgid "Custodian"
msgstr ""

msgid "Search by "
msgid "Search by name, code or id"
msgstr ""

msgid ""
Expand Down
4 changes: 2 additions & 2 deletions i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-12T22:53:44.873Z\n"
"POT-Creation-Date: 2024-06-26T16:20:27.188Z\n"
"PO-Revision-Date: 2020-07-10T06:53:30.625Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -524,7 +524,7 @@ msgstr ""
msgid "Custodian"
msgstr ""

msgid "Search by "
msgid "Search by name, code or id"
msgstr ""

msgid ""
Expand Down
4 changes: 2 additions & 2 deletions i18n/fr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-12T22:53:44.873Z\n"
"POT-Creation-Date: 2024-06-26T16:20:27.188Z\n"
"PO-Revision-Date: 2020-07-10T06:53:30.625Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -524,7 +524,7 @@ msgstr ""
msgid "Custodian"
msgstr ""

msgid "Search by "
msgid "Search by name, code or id"
msgstr ""

msgid ""
Expand Down
4 changes: 2 additions & 2 deletions i18n/pt.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-12T22:53:44.873Z\n"
"POT-Creation-Date: 2024-06-26T16:20:27.188Z\n"
"PO-Revision-Date: 2020-07-10T06:53:30.625Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -524,7 +524,7 @@ msgstr ""
msgid "Custodian"
msgstr ""

msgid "Search by "
msgid "Search by name, code or id"
msgstr ""

msgid ""
Expand Down
2 changes: 1 addition & 1 deletion src/models/dhis/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export abstract class D2Model {
protected static columns = d2BaseModelColumns;
protected static details = d2BaseModelDetails;
protected static fields = d2BaseModelFields;
protected static searchFilter: SearchFilter = { field: "name", operator: "token" };
protected static searchFilter: SearchFilter = { field: "identifiable", operator: "token" };
protected static initialSorting = ["name", "asc"];
protected static modelTransform: Function = (objects: object[]) => objects;
protected static modelFilters: any = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ const MetadataTable: React.FC<MetadataTableProps> = ({
details={details}
onChangeSearch={changeSearchFilter}
initialState={initialState}
searchBoxLabel={i18n.t(`Search by `) + model.getSearchFilter().field}
searchBoxLabel={i18n.t(`Search by name, code or id`)}
pagination={pager}
onChange={handleTableChange}
ids={ids}
Expand Down

0 comments on commit 92101a9

Please sign in to comment.