Skip to content

Commit f647269

Browse files
authored
docs: stop busy indicator when text is generated in Quick Prompt AI Pattern
Stop busy indicator when text is generated in Quick Prompt AI Pattern
1 parent 61767a0 commit f647269

File tree

1 file changed

+1
-1
lines changed
  • packages/website/docs/_samples/patterns/AIQuickPrompt

1 file changed

+1
-1
lines changed

packages/website/docs/_samples/patterns/AIQuickPrompt/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ function startTextGeneration(button, state, predefinedTexts) {
163163

164164
function stopBusyIndicatorAndGenerateText(button, predefinedTexts, textKey) {
165165
setTimeout(() => {
166-
quickPromptBusyIndicator.active = false;
167166
generateText(predefinedTexts[translationKey][textKey || currentTextKey], button);
168167
}, 2000);
169168
startQuickPromptGeneration(button);
@@ -229,6 +228,7 @@ function generateText(text, button) {
229228
clearInterval(generationId);
230229
sendButton.disabled = false;
231230
output.disabled = false;
231+
quickPromptBusyIndicator.active = false;
232232
}
233233
}, 75);
234234
}

0 commit comments

Comments
 (0)