fix: cache thumbnail in display set (#4782)
This commit is contained in:
1 parent
d26c9551b6
commit
2410c6a509
10 files changed
+47
-54
No files matched your search
@@ -25,6 +25,14 @@ export function getToolbarModule({ servicesManager }: withAppTypes) {
|
||||
};
|
||||
}
|
||||
|
||||
const activeSegmentation = segmentationService.getActiveSegmentation(viewportId);
|
||||
if (!Object.keys(activeSegmentation.segments).length) {
|
||||
return {
|
||||
disabled: true,
|
||||
disabledText: 'Add segment to enable this tool',
|
||||
};
|
||||
}
|
||||
|
||||
const toolGroup = toolGroupService.getToolGroupForViewport(viewportId);
|
||||
|
||||
if (!toolGroup) {
|
||||
|
||||
Reference in new issue
Block a user