Skip to content

Commit

Permalink
use feature flag for script editor
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMGo committed Nov 20, 2024
1 parent 96190c1 commit f38bca0
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,15 @@ const ModelerToolbar = ({
</Button>
</Tooltip>
)) ||
(bpmnIs(selectedElement, 'bpmn:ScriptTask') && (
<Tooltip title="Edit Script Task">
<Button icon={<FormOutlined />} onClick={() => setShowScriptTaskEditor(true)} />
</Tooltip>
)))}
(process.env.NEXT_PUBLIC_ENABLE_EXECUTION &&
bpmnIs(selectedElement, 'bpmn:ScriptTask') && (
<Tooltip title="Edit Script Task">
<Button
icon={<FormOutlined />}
onClick={() => setShowScriptTaskEditor(true)}
/>
</Tooltip>
)))}
</ToolbarGroup>

<Space style={{ height: '3rem' }}>
Expand Down

0 comments on commit f38bca0

Please sign in to comment.