Skip to content

Commit 40cfc1f

Browse files
authored
Merge pull request #7001 from RasaHQ/docs-download-fix
Update Rasa Playground "Download" button to work correctly depending on the current chat state
2 parents 056f6bd + 9d36d5d commit 40cfc1f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/7001.bugfix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update Rasa Playground "Download" button to work correctly depending on the current chat state.

docs/themes/theme-custom/theme/Prototyper/download-button.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DownloadButton = (props) => {
99
return (
1010
<RasaButton
1111
onClick={prototyperContext.downloadProject}
12-
disabled={!prototyperContext.hasTrained || !!prototyperContext.isTraining}
12+
disabled={prototyperContext.chatState !== "ready" && prototyperContext.chatState !== "needs_to_be_retrained"}
1313
{...props}
1414
>
1515
Download project

0 commit comments

Comments
 (0)