diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2023-05-16 14:22:17 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-05-16 20:02:50 +0000 |
commit | 9d470a890bc45f553ff849b578090c919296d09e (patch) | |
tree | fc70abf7e64c58643e15d03bd3bb1da8e7ea326a /server/sonar-web/src/main/js/apps/create/project/WrongBindingCountAlert.tsx | |
parent | 60fef4c5701f00e34e02eca59b4e991ccf913de9 (diff) | |
download | sonarqube-9d470a890bc45f553ff849b578090c919296d09e.tar.gz sonarqube-9d470a890bc45f553ff849b578090c919296d09e.zip |
SONAR-19292 Warn users about non-CaYC compliant NCD options during project setup
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/project/WrongBindingCountAlert.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/create/project/WrongBindingCountAlert.tsx | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/WrongBindingCountAlert.tsx b/server/sonar-web/src/main/js/apps/create/project/WrongBindingCountAlert.tsx deleted file mode 100644 index 7588b6cbf33..00000000000 --- a/server/sonar-web/src/main/js/apps/create/project/WrongBindingCountAlert.tsx +++ /dev/null @@ -1,63 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2023 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -import * as React from 'react'; -import { FormattedMessage } from 'react-intl'; -import Link from '../../../components/common/Link'; -import { Alert } from '../../../components/ui/Alert'; -import { translate } from '../../../helpers/l10n'; -import { getGlobalSettingsUrl } from '../../../helpers/urls'; -import { AlmKeys } from '../../../types/alm-settings'; -import { ALM_INTEGRATION_CATEGORY } from '../../settings/constants'; - -export interface WrongBindingCountAlertProps { - alm: AlmKeys; - canAdmin: boolean; -} - -export default function WrongBindingCountAlert(props: WrongBindingCountAlertProps) { - const { alm, canAdmin } = props; - - return ( - <Alert variant="error"> - {canAdmin ? ( - <FormattedMessage - defaultMessage={translate('onboarding.create_project.wrong_binding_count.admin')} - id="onboarding.create_project.wrong_binding_count.admin" - values={{ - alm: translate('onboarding.alm', alm), - url: ( - <Link to={getGlobalSettingsUrl(ALM_INTEGRATION_CATEGORY)}> - {translate('settings.page')} - </Link> - ), - }} - /> - ) : ( - <FormattedMessage - defaultMessage={translate('onboarding.create_project.wrong_binding_count')} - id="onboarding.create_project.wrong_binding_count" - values={{ - alm: translate('onboarding.alm', alm), - }} - /> - )} - </Alert> - ); -} |