File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
frontend/javascripts/viewer Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,7 @@ export function* tryToIncorporateActions(
388388
389389 // User specific skeleton actions -- only applied if coming from current user.
390390 case "updateActiveNode" :
391+ case "updateActiveTree" :
391392 case "updateTreeVisibility" :
392393 case "updateTreeGroupVisibility" :
393394 case "updateUserBoundingBoxVisibilityInSkeletonTracing" :
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ import type {
5050 SplitAgglomerateUpdateAction ,
5151 UpdateActiveNodeUpdateAction ,
5252 UpdateActiveSegmentIdUpdateAction ,
53+ UpdateActiveTreeUpdateAction ,
5354 UpdateAnnotationLayerNameUpdateAction ,
5455 UpdateBucketUpdateAction ,
5556 UpdateCameraAnnotationAction ,
@@ -433,6 +434,13 @@ const descriptionFns: Record<
433434 icon : < EditOutlined /> ,
434435 } ;
435436 } ,
437+ // Should never be sent to the backend as the backend does not understand this action. Is filtered out before sending to backend.
438+ updateActiveTree : ( action : AsServerAction < UpdateActiveTreeUpdateAction > ) : Description => {
439+ return {
440+ description : `Updated the active tree id to ${ action . value . activeTree } and node id to ${ action . value . activeNode } ` ,
441+ icon : < EditOutlined /> ,
442+ } ;
443+ } ,
436444 updateCamera : ( _action : AsServerAction < UpdateCameraAnnotationAction > ) : Description => {
437445 return {
438446 description : "Adjusted the camera" ,
You can’t perform that action at this time.
0 commit comments