Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

feat #208: hide row when no visible elements #218

Merged
merged 1 commit into from
Aug 8, 2021

Conversation

marina-mosti
Copy link
Member

@marina-mosti marina-mosti commented Aug 8, 2021

If no elements in the row are visible due to conditions being false, the row will not render an empty div.
Additionally refactors the logic into a SchemaRow intermediate component, this was needed due to not being able to modify the loop. The parsedSchema computed MUST be used or else a refactor of the plugins would be required, so the logic had to be enclosed into a new component.

closes: #208

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

If no elements in the row are visible due to conditions being false, the row will not render an empty div.
Additionally refactors the logic into a SchemaRow intermediate component, this was needed due to not being able to modify the loop. The `parsedSchema` computed MUST be used or else a refactor of the plugins would be required, so the logic had to be enclosed into a new component.

closes: #208
Copy link
Collaborator

@logaretm logaretm left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@marina-mosti marina-mosti merged commit 253842d into main Aug 8, 2021
@marina-mosti marina-mosti deleted the feat/hide-row-when-no-elements branch August 8, 2021 20:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When a condition is not met maybe the schema row shouldn't be rendered aswell
2 participants