CRUDProvider's dynamic disableCreate/-Patch is confusing #1592

Open
opened 2026-03-16 16:00:30 +01:00 by yuha · 2 comments
Member

https://edugit.org/AlekSIS/official/AlekSIS-Core/-/blob/master/aleksis/core/frontend/components/generic/crud/CRUDProvider.vue?ref_type=heads#L172

problem: setting disablePatch/-Create on a CRUDProvider doesn't necessarily hide the respective buttons etc. this only happens when both the prop is set and no item has a truthy canEdit/-Delete value

but disablePatch/-Create (the prop) is supposed to generally disable the feature. maybe replace with an OR?

https://edugit.org/AlekSIS/official/AlekSIS-Core/-/blob/master/aleksis/core/frontend/components/generic/crud/CRUDProvider.vue?ref_type=heads#L172 problem: setting disablePatch/-Create on a CRUDProvider doesn't necessarily hide the respective buttons etc. this only happens when _both_ the prop is set _and_ no item has a truthy canEdit/-Delete value but disablePatch/-Create (the prop) is supposed to generally disable the feature. maybe replace with an OR?
Member

Are you sure this issue persists after recent changes @yuha ?

Are you sure this issue persists after recent changes @yuha ?
Author
Member

no. but how recent / can you point me to the respective changes?

no. but how recent / can you point me to the respective changes?
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core#1592
No description provided.