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

Fix category hiding in Angular Material #2027

Merged
merged 1 commit into from
Nov 8, 2022
Merged

Conversation

lucas-koehler
Copy link
Contributor

Previously, the Angular Material category renderer didn't consider categories' visbilities and always showed themy.
This prefilters visible categories before rendering them in the template.

Fix unit test by moving the setting of the new UI schema in the jsonFormsService after it was reassigned in the component. With this, when the event is triggered on the subscription, the new schema is already present. This is necessary for the new changes and also fixes the previously commented out assertion.

Previously, the Angular Material category renderer didn't consider
categories' visbilities and always showed themy.
This prefilters visible categories before rendering them in
the template.

Fix unit test by moving the setting of the new UI schema in the
jsonFormsService after it was reassigned in the component.
With this, when the event is triggered on the subscription, the new schema is
already present. This is necessary for the new changes and also fixes
the previously commented out assertion.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 84.451% when pulling 9a02eea on angular-category-hiding into 20e9e0f on master.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@sdirix sdirix merged commit 1732094 into master Nov 8, 2022
@sdirix sdirix deleted the angular-category-hiding branch November 8, 2022 22:35
@sdirix sdirix added this to the 3.1 milestone Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants