Skip to content

Commit

Permalink
Use group icon for components created by grouping. (#10020)
Browse files Browse the repository at this point in the history
Use `group` icon for components created by grouping.

https://github.com/enso-org/enso/assets/1047859/50a0dbb6-d36e-4fcb-9f39-b6493b8cca86

See: #9831.

# Important Notes
- This PR always sets the icon, but it is not always shown due to missing updates from the backend; this issue is currently being investigated.
  • Loading branch information
kazcw authored May 22, 2024
1 parent ba2787c commit fcfc081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/gui2/src/components/GraphEditor/collapsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ export function performCollapse(
}
const argNames = info.extracted.inputs
const collapsedFunction = Ast.Function.fromStatements(edit, collapsedName, argNames, collapsed)
topLevel.insert(posToInsert, collapsedFunction, undefined)
const collapsedFunctionWithIcon = Ast.Documented.new('ICON group', collapsedFunction)
topLevel.insert(posToInsert, collapsedFunctionWithIcon, undefined)
return { refactoredNodeId, collapsedNodeIds, outputNodeId }
}

Expand Down

0 comments on commit fcfc081

Please sign in to comment.