-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
@@ -1221,7 +1222,7 @@ class SegmentsView extends React.Component<Props, State> { | |||
this.handleChangeMeshVisibilityInGroup( | |||
this.props.visibleSegmentationLayer.name, | |||
groupId, | |||
!this.areSelectedSegmentsMeshesVisible(), | |||
!areGroupOrSelectedSegmentMeshesVisible, |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
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. |
if it was just about drag and drop, the fix was easy. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…able
Steps to test:
TODOs:
Issues:
(Please delete unneeded items, merge only when none are left open)