Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
"emptyListSubtitleMessage": "Create a workspace to get started"
},
"ConnectButton": {
"buttonText": "Connect"
"buttonText": "Connect",
"defaultIdP": "default IdP",
"unsupportedIdP": "non-default IdP not supported"
},
"MCPHealthPopoverButton": {
"statusHeader": "Status",
Expand Down
9 changes: 6 additions & 3 deletions src/components/ControlPlanes/ConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@ export default function ConnectButton(props: Props) {
data-target={`/mcp/projects/${props.projectName}/workspaces/${extractWorkspaceNameFromNamespace(
props.workspaceName,
)}/mcps/${props.controlPlaneName}/context/${context.name}`}
additionalText={
currentContext === context.name ? '(default IdP)' : undefined
}
additionalText={`(${
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the mcp resource and check the spec.authentication.enableSystemIdentityProvider === true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed as discussed

currentContext === context.name
? t('ConnectButton.defaultIdP')
: t('ConnectButton.unsupportedIdP')
})`}
disabled={currentContext !== context.name}
/>
))}
<MenuItem
Expand Down
Loading