Skip to content

Commit

Permalink
Add fieldPath to Overridable tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahW91 authored and kpsherva committed Apr 8, 2024
1 parent cbe41da commit f6e6ffd
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ function CustomAwardForm({ deserializeFunder, selectedFunding }) {

return (
<Form>
<Overridable id="InvenioVocabularies.CustomAwardForm.RemoteSelectField.Container">
<Overridable
id="InvenioVocabularies.CustomAwardForm.RemoteSelectField.Container"
fieldPath="selectedFunding.funder.id"
>
<RemoteSelectField
fieldPath="selectedFunding.funder.id"
suggestionAPIUrl="/api/funders"
Expand Down Expand Up @@ -111,14 +114,20 @@ function CustomAwardForm({ deserializeFunder, selectedFunding }) {
fieldPath="selectedFunding.award.number"
/>
</Overridable>
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardTitleTextField.Container">
<Overridable
id="InvenioVocabularies.CustomAwardForm.AwardTitleTextField.Container"
fieldPath="selectedFunding.award.title"
>
<TextField
label={i18next.t("Title")}
placeholder={i18next.t("Award Title")}
fieldPath="selectedFunding.award.title"
/>
</Overridable>
<Overridable id="InvenioVocabularies.CustomAwardForm.AwardUrlTextField.Container">
<Overridable
id="InvenioVocabularies.CustomAwardForm.AwardUrlTextField.Container"
fieldPath="selectedFunding.award.url"
>
<TextField
label={i18next.t("URL")}
placeholder={i18next.t("Award URL")}
Expand Down

0 comments on commit f6e6ffd

Please sign in to comment.