From: Wouter Admiraal Date: Thu, 25 Feb 2021 12:53:01 +0000 (+0100) Subject: SONAR-12056 Indicate required fields for forms X-Git-Tag: 8.8.0.42792~77 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68292ece44a35c142bf116db50989c03bc33e522;p=sonarqube.git SONAR-12056 Indicate required fields for forms --- diff --git a/server/sonar-web/src/main/js/app/components/extensions/CreateApplicationForm.tsx b/server/sonar-web/src/main/js/app/components/extensions/CreateApplicationForm.tsx index 756866c9909..b46fbcfba60 100644 --- a/server/sonar-web/src/main/js/app/components/extensions/CreateApplicationForm.tsx +++ b/server/sonar-web/src/main/js/app/components/extensions/CreateApplicationForm.tsx @@ -22,6 +22,8 @@ import { ResetButtonLink, SubmitButton } from 'sonar-ui-common/components/contro import Radio from 'sonar-ui-common/components/controls/Radio'; import SimpleModal from 'sonar-ui-common/components/controls/SimpleModal'; import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner'; +import MandatoryFieldMarker from 'sonar-ui-common/components/ui/MandatoryFieldMarker'; +import MandatoryFieldsExplanation from 'sonar-ui-common/components/ui/MandatoryFieldsExplanation'; import { translate } from 'sonar-ui-common/helpers/l10n'; import { createApplication } from '../../../api/application'; import { ComponentQualifier, Visibility } from '../../../types/component'; @@ -107,9 +109,12 @@ export default class CreateApplicationForm extends React.PureComponent
+ +
+
@@ -38,12 +41,7 @@ exports[`should render correctly: form 1`] = ` htmlFor="view-edit-name" > name - - - * - +
) : ( <> +
(
(
{this.props.customRule ? ( @@ -194,7 +196,8 @@ export default class CustomRuleFormModal extends React.PureComponent (