Skip to content

Commit

Permalink
[editor] Set isRunning on RunPromptButton in Settings Drawer (#709)
Browse files Browse the repository at this point in the history
[editor] Set isRunning on RunPromptButton in Settings Drawer

# [editor] Set isRunning on RunPromptButton in Settings Drawer

Previously, the RunPromptButton within the expanded action bar was
clickable when running the prompt, so just pass the isRunning prop to
fix:


https://github.com/lastmile-ai/aiconfig/assets/5060851/408ac180-d3ef-4fe7-bd10-b476081a11a0

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/709).
* #710
* __->__ #709
  • Loading branch information
rholinshead authored Jan 2, 2024
2 parents 6bbe147 + 89cbe8e commit 7bcc255
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ export default memo(function PromptActionBar({
)}
</Tabs>
</Container>
<RunPromptButton runPrompt={onRunPrompt} size="full" />
<RunPromptButton
isRunning={prompt._ui.isRunning}
runPrompt={onRunPrompt}
size="full"
/>
</>
) : (
<Flex direction="column" justify="space-between" h="100%">
Expand All @@ -98,8 +102,8 @@ export default memo(function PromptActionBar({
</ActionIcon>
</Flex>
<RunPromptButton
runPrompt={onRunPrompt}
isRunning={prompt._ui.isRunning}
runPrompt={onRunPrompt}
size="compact"
/>
</Flex>
Expand Down

0 comments on commit 7bcc255

Please sign in to comment.