From 52fe2c80acd06b2692ef876616bc42b649ee1d03 Mon Sep 17 00:00:00 2001 From: mintsweet <0x1304570@gmail.com> Date: Fri, 11 Oct 2024 14:41:37 +1300 Subject: [PATCH] fix: adjust sonarqube cloud config --- .../plugins/components/connection-form/fields/endpoint.tsx | 4 +++- config-ui/src/plugins/register/sonarqube/config.tsx | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx b/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx index 882951dabd5..4639f65e2da 100644 --- a/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx +++ b/config-ui/src/plugins/components/connection-form/fields/endpoint.tsx @@ -29,6 +29,7 @@ interface Props { disabled?: boolean; name: string; multipleVersions?: Record; + cloudName?: string; initialValue: string; value: string; error: string; @@ -41,6 +42,7 @@ export const ConnectionEndpoint = ({ disabled = false, name, multipleVersions, + cloudName, initialValue, value, setValue, @@ -79,7 +81,7 @@ export const ConnectionEndpoint = ({ <> - {name} Cloud + {cloudName ? cloudName : `${name} Cloud`} {name} Server {multipleVersions.server ? multipleVersions.server : '(to be supported)'} diff --git a/config-ui/src/plugins/register/sonarqube/config.tsx b/config-ui/src/plugins/register/sonarqube/config.tsx index 7c8ab3a68fd..60d1d483749 100644 --- a/config-ui/src/plugins/register/sonarqube/config.tsx +++ b/config-ui/src/plugins/register/sonarqube/config.tsx @@ -41,7 +41,8 @@ export const SonarQubeConfig: IPluginConfig = { cloud: 'https://sonarcloud.io/api/', server: ' ', }, - subLabel: 'If you are using SonarCloud, the endpoint URL will be set to `https://sonarcloud.io/api/`.', + cloudName: 'SonarCloud', + subLabel: 'The URL should be `http://:/api/`', }, ({ type, initialValues, values, errors, setValues, setErrors }: any) => (