Skip to content
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

ListItem: rename 'allowed' to 'preferredVisible' and do other clean-up #1844

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

blammit
Copy link
Contributor

@blammit blammit commented Jan 15, 2025

No description provided.

There isn't a good use case for having the defaultAllowed property,
and it forces components to refer to an extra property. Remove it and
just refer to userHasReadAccess directly in ListItem.
'allowed' implies some access control is involved, which is often not
the case, as an item's visibility often depends on whether a backend
value is available, or whether another setting is enabled.

Rename it to 'preferredVisible' as the property indicates whether an
item should be visible, and is used as the input value for 'visible'.

Fixes #1843
This is no longer needed as the implicitHeight binding has been
greatly simplified.
@blammit blammit merged commit aa24ca7 into main Jan 15, 2025
2 checks passed
@blammit blammit deleted the blam/rename-allowed branch January 15, 2025 05:02
@blammit
Copy link
Contributor Author

blammit commented Jan 15, 2025

@jhofstee @dirkjanfaber @ReinvdZee @martinbosma @izak please note, allowed has been renamed to preferredVisible as per this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants