Skip to content

Commit d912200

Browse files
fix(content-sidebar): add disabled state (#3997)
* fix(content-sidebar): add disabled state * fix(content-sidebar): addressing review comments
1 parent 1f5180f commit d912200

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/elements/content-sidebar/BoxAISidebarContent.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function BoxAISidebarContent(props: ApiWrapperWithInjectedProps) {
4141
encodedSession,
4242
onClearAction,
4343
getAIStudioAgents,
44+
hasRequestInProgress,
4445
hostAppName,
4546
isAIStudioAgentSelectorEnabled,
4647
isLoading,
@@ -150,6 +151,7 @@ function BoxAISidebarContent(props: ApiWrapperWithInjectedProps) {
150151
{isAIStudioAgentSelectorEnabled && (
151152
<div className="bcs-BoxAISidebar-agentSelector">
152153
<BoxAiAgentSelectorWithApi
154+
disabled={hasRequestInProgress}
153155
fetcher={getAIStudioAgents}
154156
hostAppName={hostAppName}
155157
onAgentsListOpen={handleUserIntentToUseAI}
@@ -214,6 +216,7 @@ function BoxAISidebarContent(props: ApiWrapperWithInjectedProps) {
214216
contentType={formatMessage(messages.sidebarBoxAIContent)}
215217
extension={fileExtension}
216218
getAIStudioAgents={getAIStudioAgents}
219+
hasRequestInProgress={hasRequestInProgress}
217220
hostAppName={hostAppName}
218221
isAIStudioAgentSelectorEnabled={isAIStudioAgentSelectorEnabled}
219222
isFeedbackEnabled={isFeedbackEnabled}

0 commit comments

Comments
 (0)