mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-04 03:35:04 -05:00
Compare commits
3 Commits
feat/timeo
...
cursor/run
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3d7673331 | ||
|
|
40983b4b99 | ||
|
|
68bdf50684 |
@@ -192,10 +192,10 @@ export const ActionBar = memo(
|
|||||||
</Tooltip.Trigger>
|
</Tooltip.Trigger>
|
||||||
<Tooltip.Content side='top'>
|
<Tooltip.Content side='top'>
|
||||||
{(() => {
|
{(() => {
|
||||||
if (disabled) return getTooltipMessage('Run from block')
|
if (disabled) return getTooltipMessage('Run')
|
||||||
if (isExecuting) return 'Execution in progress'
|
if (isExecuting) return 'Execution in progress'
|
||||||
if (!dependenciesSatisfied) return 'Run previous blocks first'
|
if (!dependenciesSatisfied) return 'Disabled: Run Blocks Before'
|
||||||
return 'Run from block'
|
return 'Run'
|
||||||
})()}
|
})()}
|
||||||
</Tooltip.Content>
|
</Tooltip.Content>
|
||||||
</Tooltip.Root>
|
</Tooltip.Root>
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ export function BlockMenu({
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Run from block
|
Run
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
{/* Hide "Run until" for triggers - they're always at the start */}
|
{/* Hide "Run until" for triggers - they're always at the start */}
|
||||||
{!hasTriggerBlock && (
|
{!hasTriggerBlock && (
|
||||||
|
|||||||
@@ -1173,7 +1173,7 @@ const WorkflowContent = React.memo(() => {
|
|||||||
block.parentId && (block.parentType === 'loop' || block.parentType === 'parallel')
|
block.parentId && (block.parentType === 'loop' || block.parentType === 'parallel')
|
||||||
|
|
||||||
if (isInsideSubflow) return { canRun: false, reason: 'Cannot run from inside subflow' }
|
if (isInsideSubflow) return { canRun: false, reason: 'Cannot run from inside subflow' }
|
||||||
if (!dependenciesSatisfied) return { canRun: false, reason: 'Run previous blocks first' }
|
if (!dependenciesSatisfied) return { canRun: false, reason: 'Disabled: Run Blocks Before' }
|
||||||
if (isNoteBlock) return { canRun: false, reason: undefined }
|
if (isNoteBlock) return { canRun: false, reason: undefined }
|
||||||
if (isExecuting) return { canRun: false, reason: undefined }
|
if (isExecuting) return { canRun: false, reason: undefined }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user