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

refactor(ActionList): use bool data hasEnabledChild #5735

Conversation

max-nextcloud
Copy link
Collaborator

Check if there is any child that is enabled.

This is somewhat simpler than storing an array of the disabled children and comparing it's length to the length of the array of non-seperator children.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • was already covered with tests.
  • Documentation is not required

Check if there is any child that is enabled.

This is somewhat simpler than storing an array of the disabled children
and comparing it's length to the length of the array of non-seperator children.

Signed-off-by: Max <[email protected]>
@max-nextcloud max-nextcloud merged commit daab3ce into disable-callouts-button-when-all-variants-disabled Apr 30, 2024
60 checks passed
@max-nextcloud max-nextcloud deleted the tweak-disable-callouts branch April 30, 2024 08:41
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.

2 participants