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

disabled some actions when segmentation layer is visible but not edit… #7333

Merged
merged 12 commits into from
Oct 2, 2023

Conversation

dieknolle3333
Copy link
Contributor

@dieknolle3333 dieknolle3333 commented Sep 15, 2023

…able

Steps to test:

  • see issue

TODOs:

  • fix var naming

Issues:


(Please delete unneeded items, merge only when none are left open)

@dieknolle3333 dieknolle3333 self-assigned this Sep 15, 2023
@@ -1221,7 +1222,7 @@ class SegmentsView extends React.Component<Props, State> {
this.handleChangeMeshVisibilityInGroup(
this.props.visibleSegmentationLayer.name,
groupId,
!this.areSelectedSegmentsMeshesVisible(),
!areGroupOrSelectedSegmentMeshesVisible,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not related to the bug, but saw that this lead to wrong behaviour

@dieknolle3333 dieknolle3333 marked this pull request as ready for review September 26, 2023 15:10
Copy link
Member

@hotzenklotz hotzenklotz left a comment

Choose a reason for hiding this comment

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

Code looks good. I still need to test.

@hotzenklotz
Copy link
Member

Tested and works like a charm.

One little thing: I can still move segments into groups even when I am not supposed to. This was not directly part of the issue but perhaps it easy to tackle as well. Drag and drop moving a segment into a group should probably be prevented. If this is easy, please fix. Otherwise we merge as is.

@dieknolle3333
Copy link
Contributor Author

if it was just about drag and drop, the fix was easy. :)

Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

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

:shipit:

@dieknolle3333 dieknolle3333 merged commit 71c94ca into master Oct 2, 2023
1 check passed
@dieknolle3333 dieknolle3333 deleted the properly-disable-segment-actions branch October 2, 2023 09:15
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.

Some segment actions are not properly disabled for non-editable segmentation layers
3 participants