mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 08:02:43 +00:00
fix: disable moving a session again while a move runs
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
315bf9ce15
commit
325b0d178c
@@ -467,7 +467,7 @@
|
||||
|
||||
async function startMove(target: MoveTarget) {
|
||||
const parent = actingWorkspaceId
|
||||
if (!session || !parent || !canMoveToFork) return
|
||||
if (!session || !parent || !canMoveToFork || moving) return
|
||||
if (target.kind === 'existing' && target.id === parent) return
|
||||
const listed = await listMoveItems(parent, target)
|
||||
if (typeof listed === 'string') {
|
||||
@@ -685,7 +685,7 @@
|
||||
icon: GitFork,
|
||||
// Before the first message, the "Run in" picker sets the workspace instead.
|
||||
hide: !hasFirstUserMessage || isUnavailable || session.archived,
|
||||
disabled: !canMoveToFork,
|
||||
disabled: !canMoveToFork || moving,
|
||||
action: () => (movePickerOpen = true)
|
||||
},
|
||||
...(session.archived
|
||||
|
||||
Reference in New Issue
Block a user