-
Notifications
You must be signed in to change notification settings - Fork 116
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
add BuilderList #4240
base: master-mysterious-egg
Are you sure you want to change the base?
add BuilderList #4240
Conversation
This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged. |
f468b7f
to
80b3d5d
Compare
27a1402
to
8c6b756
Compare
de09195
to
030f5d2
Compare
This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged. |
030f5d2
to
e79686c
Compare
e79686c
to
27f2247
Compare
validateProps() { | ||
// entryShape types are supported | ||
for (const [name, type] of Object.entries(this.props.entryShape)) { | ||
if (!supportedEntryShapeTypes.includes(type)) { | ||
throw new Error( | ||
`BuilderList entryShape only supports ${supportedEntryShapeTypes.toString()} types, received ${name}: "${type}"` | ||
); | ||
} | ||
} |
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.
Why not use Component validation props ?
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.
(Maybe checkc ommunity/addons/html_editor/static/src/main/toolbar/toolbar.js)
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.
Thanks, I actually forgot to look into it. 😅 I fixed it in a 4th commit
Do you know if it's possible to validate a prop against other props?
No description provided.