feature: navigation highlighting in tree
This commit is contained in:
@@ -41,6 +41,7 @@ export default function NodeContextMenu({
|
||||
const graphContextValue = useContext(graphContext)!;
|
||||
const graphsById = useGraphsStore((s) => (s as { graphsById: Map<string, GraphModel> }).graphsById);
|
||||
const addTreeNode = useGraphLayersTreeStore(store => store.add);
|
||||
const removeTreeNode = useGraphLayersTreeStore(store => store.remove);
|
||||
|
||||
function contextMenuOpenChange(open: boolean) {
|
||||
if (!open) {
|
||||
@@ -56,6 +57,7 @@ export default function NodeContextMenu({
|
||||
}
|
||||
case 'remove': {
|
||||
removeNode(nodeContext.nodeId);
|
||||
removeTreeNode(nodeContext.nodeId);
|
||||
break;
|
||||
}
|
||||
case 'subgraph': {
|
||||
|
||||
Reference in New Issue
Block a user