-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(content-sidebar): add disabled state #3997
Conversation
@@ -150,6 +150,7 @@ function BoxAISidebarContent(props: ApiWrapperWithInjectedProps) { | |||
{isAIStudioAgentSelectorEnabled && ( | |||
<div className="bcs-BoxAISidebar-agentSelector"> | |||
<BoxAiAgentSelectorWithApi | |||
disabled={props.hasRequestInProgress} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
props
is being destructured at the top so you could include hasRequestInProgress
there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes let's not pull this directly from props here. Let's add this to the list of destructured values coming from the props parameter at the top instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no problem though I will need to add it to the Modal as it is also used there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
props
@@ -150,6 +150,7 @@ function BoxAISidebarContent(props: ApiWrapperWithInjectedProps) { | |||
{isAIStudioAgentSelectorEnabled && ( | |||
<div className="bcs-BoxAISidebar-agentSelector"> | |||
<BoxAiAgentSelectorWithApi | |||
disabled={props.hasRequestInProgress} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes let's not pull this directly from props here. Let's add this to the list of destructured values coming from the props parameter at the top instead.
Add missing disabled select agent when we ask AI a question similar solution that is in AI Modal