Skip to content

Commit 09bca7b

Browse files
committed
fix(workflow): respect snapshot view for panel lock toggle, remove unused disableAdmin prop
1 parent ff08337 commit 09bca7b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/canvas-menu/canvas-menu.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export interface CanvasMenuProps {
3232
isChatOpen?: boolean
3333
hasClipboard?: boolean
3434
disableEdit?: boolean
35-
disableAdmin?: boolean
3635
canAdmin?: boolean
3736
canUndo?: boolean
3837
canRedo?: boolean

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export const Panel = memo(function Panel() {
421421
<Layout className='h-3 w-3' animate={isAutoLayouting} variant='clockwise' />
422422
<span>Auto layout</span>
423423
</PopoverItem>
424-
{userPermissions.canAdmin && (
424+
{userPermissions.canAdmin && !currentWorkflow?.isSnapshotView && (
425425
<PopoverItem onClick={handleToggleWorkflowLock} disabled={!hasBlocks}>
426426
{allBlocksLocked ? (
427427
<Unlock className='h-3 w-3' />

0 commit comments

Comments
 (0)