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(Group): handle visibility for nested groups #17

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

ChristosT
Copy link
Contributor

When a group has another group as only child its slot may not have an associated componentInstance. In this case we need to look in its children for componentInstances to check for visibility of the group.

This was found in async_paraview when using the stream tracer filter with the following layout.

<SourceProxy StreamTracer ...>
  <PropertyGroup label="Seeds">
         <Property name="Source"/>
         <PropertyGroup label="Line Parameters" panel_widget="InteractiveLine">
            ...
        </PropertyGroup>
  </PropertyGroup>
</SourceProxy>

Since we do not have InteractiveLine widget yet and we replace it with a group and thus a nested group is created.

@jourdain
Copy link
Collaborator

Can you run npm run lint to reformat the code?

@@ -33,14 +33,21 @@ export default {
}

let visibleCount = 0;
this.$slots.default.forEach((vNode) => {
let helper = (vNode) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

const helper = (...)

@jourdain
Copy link
Collaborator

Looks good otherwise

When a group has another group as only child, its slot may not have an associated
`componentInstance`. In this case we need to look in its children for componentInstances to check for visibility.

This was found in async_paraview when using the stream tracer filter with the following layout.

```
<SourceProxy StreamTracer ...>
  <PropertyGroup label="Seeds">
         <Property name="Source"/>
         <PropertyGroup label="Line Parameters" panel_widget="InteractiveLine">
            ...
        </PropertyGroup>
  </PropertyGroup>
</SourceProxy>
```

Since we do not have `InteractiveLine` widget yet and we replace it with a group and thus a nested group is created.
@jourdain jourdain merged commit a6ea27c into Kitware:master Aug 22, 2023
6 checks passed
@ChristosT ChristosT deleted the fix-group-in-group branch August 22, 2023 19:55
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