Skip to content

Commit

Permalink
fix(ai-help): hide "Stop answering" before we respond (#10530)
Browse files Browse the repository at this point in the history
* fix(ai-help): hide "Stop answering" before we respond

* chore(ai-help): hide all disabled footer actions
  • Loading branch information
caugner authored Feb 29, 2024
1 parent 0b03586 commit ad5f5a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/plus/ai-help/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@

.ai-help-footer-actions {
padding-bottom: 0.5rem;

button:disabled {
visibility: hidden;
}
}

.ai-help-footer-text {
Expand Down
1 change: 1 addition & 0 deletions client/src/plus/ai-help/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ export function AIHelpInner() {
<div className="ai-help-footer-actions">
<Button
type="action"
isDisabled={!isResponding}
extraClasses="ai-help-stop-button"
onClickHandler={() => {
gleanClick(`${AI_HELP}: stop`);
Expand Down

0 comments on commit ad5f5a4

Please sign in to comment.