-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form: refactor section config in RDMDepositForm #2983
Conversation
19efcc4
to
dac903c
Compare
6e07166
to
124d1a1
Compare
124d1a1
to
b9b1bba
Compare
Co-authored-by: Carlin Mackenzie <[email protected]>
b9b1bba
to
8736489
Compare
5280a98
to
6fe8b93
Compare
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to ignore whitespaces
6fe8b93
to
be24f9c
Compare
be24f9c
to
ae52a28
Compare
// Adding section id to custom fields UI, to be used for accordions | ||
const customFieldsUI = this.config.custom_fields.ui.map((section) => ({ | ||
...section, | ||
id: section.section.toLowerCase().replace(/\s+/g, "-") + "-section", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the regex detection is quite risky, why is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the section names are defined like this for example in the ui config, so it is replacing space with - and appending -section
❤️ Thank you for your contribution!
Description
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: