-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:scalableminds/webknossos into all…
…ow-dollar-in-layer-names
- Loading branch information
Showing
21 changed files
with
144 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...tend/javascripts/oxalis/view/right-border-tabs/segments_tab/load_mesh_menu_item_label.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { WarningOutlined } from "@ant-design/icons"; | ||
import FastTooltip from "components/fast_tooltip"; | ||
import type { VolumeTracing } from "oxalis/store"; | ||
import type { APIMeshFile } from "types/api_flow_types"; | ||
|
||
type Props = { | ||
currentMeshFile: APIMeshFile | null | undefined; | ||
volumeTracing: VolumeTracing | null | undefined; | ||
}; | ||
|
||
export function LoadMeshMenuItemLabel({ currentMeshFile, volumeTracing }: Props) { | ||
const showWarning = | ||
volumeTracing?.volumeBucketDataHasChanged ?? | ||
// For older annotations, volumeBucketDataHasChanged can be undefined. | ||
// In that case, we still want to show a warning if no proofreading was | ||
// done, but the mapping is still locked (i.e., the user brushed). | ||
(!volumeTracing?.hasEditableMapping && volumeTracing?.mappingIsLocked); | ||
|
||
return ( | ||
<span style={{ display: "flex", alignItems: "center", gap: "4px" }}> | ||
<FastTooltip | ||
title={ | ||
currentMeshFile != null | ||
? `Load mesh for centered segment from file ${currentMeshFile.meshFileName}` | ||
: "There is no mesh file." | ||
} | ||
> | ||
<span>Load Mesh (precomputed)</span> | ||
</FastTooltip> | ||
{showWarning && ( | ||
<FastTooltip title="Warning: The segmentation data has changed since the mesh file was created. The mesh may not match the current data."> | ||
<WarningOutlined style={{ color: "var(--ant-color-warning)" }} /> | ||
</FastTooltip> | ||
)} | ||
</span> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.