Skip to content

Commit ad5f5a4

Browse files
authored
fix(ai-help): hide "Stop answering" before we respond (#10530)
* fix(ai-help): hide "Stop answering" before we respond * chore(ai-help): hide all disabled footer actions
1 parent 0b03586 commit ad5f5a4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: client/src/plus/ai-help/index.scss

+4
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@
187187

188188
.ai-help-footer-actions {
189189
padding-bottom: 0.5rem;
190+
191+
button:disabled {
192+
visibility: hidden;
193+
}
190194
}
191195

192196
.ai-help-footer-text {

Diff for: client/src/plus/ai-help/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ export function AIHelpInner() {
698698
<div className="ai-help-footer-actions">
699699
<Button
700700
type="action"
701+
isDisabled={!isResponding}
701702
extraClasses="ai-help-stop-button"
702703
onClickHandler={() => {
703704
gleanClick(`${AI_HELP}: stop`);

0 commit comments

Comments
 (0)