Skip to content

Commit a8b1f2e

Browse files
committed
improvement(action-bar): ordering
1 parent 2f0f246 commit a8b1f2e

File tree

1 file changed

+1
-24
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar

1 file changed

+1
-24
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar/action-bar.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const ActionBar = memo(
128128
'dark:border-transparent dark:bg-[var(--surface-4)]'
129129
)}
130130
>
131-
{!isNoteBlock && !isSubflowBlock && (
131+
{!isNoteBlock && (
132132
<Tooltip.Root>
133133
<Tooltip.Trigger asChild>
134134
<Button
@@ -222,29 +222,6 @@ export const ActionBar = memo(
222222
</Tooltip.Root>
223223
)}
224224

225-
{isSubflowBlock && (
226-
<Tooltip.Root>
227-
<Tooltip.Trigger asChild>
228-
<Button
229-
variant='ghost'
230-
onClick={(e) => {
231-
e.stopPropagation()
232-
if (!disabled) {
233-
collaborativeBatchToggleBlockEnabled([blockId])
234-
}
235-
}}
236-
className={ACTION_BUTTON_STYLES}
237-
disabled={disabled}
238-
>
239-
{isEnabled ? <Circle className={ICON_SIZE} /> : <CircleOff className={ICON_SIZE} />}
240-
</Button>
241-
</Tooltip.Trigger>
242-
<Tooltip.Content side='top'>
243-
{getTooltipMessage(isEnabled ? 'Disable Block' : 'Enable Block')}
244-
</Tooltip.Content>
245-
</Tooltip.Root>
246-
)}
247-
248225
<Tooltip.Root>
249226
<Tooltip.Trigger asChild>
250227
<Button

0 commit comments

Comments
 (0)