Skip to content

Commit

Permalink
Allow to delete bbox even if there is no visible segmentation layer (#…
Browse files Browse the repository at this point in the history
…8164)

* allow to delete bbox even if there is no visible segmentation layer

* add changelog
  • Loading branch information
dieknolle3333 authored Nov 4, 2024
1 parent 97b2058 commit 159f868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Fixed a bug where you could not create annotations for public datasets of other organizations. [#8107](https://github.com/scalableminds/webknossos/pull/8107)
- Users without edit permissions to a dataset can no longer delete sharing tokens via the API. [#8083](https://github.com/scalableminds/webknossos/issues/8083)
- Fixed downloading task annotations of teams you are not in, when accessing directly via URI. [#8155](https://github.com/scalableminds/webknossos/pull/8155)
- Deleting a bounding box is now possible independently of a visible segmentation layer. [#8164](https://github.com/scalableminds/webknossos/pull/8164)

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@ class UserBoundingBoxInput extends React.PureComponent<UserBoundingBoxInputProps
isLockedByOwner,
isOwner,
);
const isDeleteEnabled = !disabled && this.props.visibleSegmentationLayer != null;

const getContextMenu = () => {
const items: MenuProps["items"] = [
Expand Down Expand Up @@ -590,13 +589,13 @@ class UserBoundingBoxInput extends React.PureComponent<UserBoundingBoxInputProps
},
{
key: "delete",
label: isDeleteEnabled ? (
label: !disabled ? (
deleteButton
) : (
<FastTooltip title={editingDisallowedExplanation}>{deleteButton}</FastTooltip>
),
onClick: onDelete,
disabled: !isDeleteEnabled,
disabled,
},
];

Expand Down

0 comments on commit 159f868

Please sign in to comment.