aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/components
diff options
context:
space:
mode:
authorViktor Vorona <viktor.vorona@sonarsource.com>2023-06-05 17:20:05 +0200
committersonartech <sonartech@sonarsource.com>2023-06-05 20:02:48 +0000
commitbdf5a70ff1b33e143c929c91ac41a4495995ee66 (patch)
tree0fce5139d7359d63837e27288135343763e0f7ba /server/sonar-web/src/main/js/apps/quality-gates/components
parentc1966338ee963dbd6e6f636635f390cfeb334af5 (diff)
downloadsonarqube-bdf5a70ff1b33e143c929c91ac41a4495995ee66.tar.gz
sonarqube-bdf5a70ff1b33e143c929c91ac41a4495995ee66.zip
[NO-JIRA] react/jsx-boolean-value -> never
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/ConditionOperator.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/ConditionReviewAndUpdateModal.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/CopyQualityGateForm.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsRenderer.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/RenameQualityGateForm.tsx4
10 files changed, 16 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx
index 7dda45d0ee9..ea476fca3f1 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx
@@ -194,7 +194,7 @@ export class ConditionComponent extends React.PureComponent<Props, State> {
confirmButtonText={translate('delete')}
confirmData={condition}
header={translate('quality_gates.delete_condition')}
- isDestructive={true}
+ isDestructive
onClose={this.closeDeleteForm}
onConfirm={this.removeCondition}
>
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionOperator.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionOperator.tsx
index 4ead5324024..e4153aa49aa 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionOperator.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionOperator.tsx
@@ -51,7 +51,7 @@ export default class ConditionOperator extends React.PureComponent<Props> {
return (
<Select
- autoFocus={true}
+ autoFocus
aria-labelledby="condition-operator-label"
className="input-medium"
isClearable={false}
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionReviewAndUpdateModal.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionReviewAndUpdateModal.tsx
index 28a58563a31..216f1458d93 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionReviewAndUpdateModal.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionReviewAndUpdateModal.tsx
@@ -132,7 +132,7 @@ export default class CaycReviewUpdateConditionsModal extends React.PureComponent
{...this.props}
conditions={sortedMissingConditions}
showEdit={false}
- isCaycModal={true}
+ isCaycModal
/>
</>
)}
@@ -149,7 +149,7 @@ export default class CaycReviewUpdateConditionsModal extends React.PureComponent
{...this.props}
conditions={sortedWeakConditions}
showEdit={false}
- isCaycModal={true}
+ isCaycModal
/>
</>
)}
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/CopyQualityGateForm.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/CopyQualityGateForm.tsx
index 34da6914e32..f14b9ee6ea6 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/CopyQualityGateForm.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/CopyQualityGateForm.tsx
@@ -79,11 +79,11 @@ export class CopyQualityGateForm extends React.PureComponent<Props, State> {
<MandatoryFieldMarker />
</label>
<input
- autoFocus={true}
+ autoFocus
id="quality-gate-form-name"
maxLength={100}
onChange={this.handleNameChange}
- required={true}
+ required
size={50}
type="text"
value={name}
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
index 56ce7cc527d..14dd91b530c 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
@@ -73,11 +73,11 @@ export class CreateQualityGateForm extends React.PureComponent<Props, State> {
<MandatoryFieldMarker />
</label>
<input
- autoFocus={true}
+ autoFocus
id="quality-gate-form-name"
maxLength={100}
onChange={this.handleNameChange}
- required={true}
+ required
size={50}
type="text"
value={name}
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
index ec0551c2c41..af99b174054 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/DeleteQualityGateForm.tsx
@@ -48,7 +48,7 @@ export class DeleteQualityGateForm extends React.PureComponent<Props> {
return (
<ConfirmButton
confirmButtonText={translate('delete')}
- isDestructive={true}
+ isDestructive
modalBody={translateWithParameters(
'quality_gates.delete.confirm.message',
qualityGate.name
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx
index eb267eb263d..7782337632b 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx
@@ -172,7 +172,7 @@ export default class Projects extends React.PureComponent<Props, State> {
readOnly={!this.props.canEdit}
renderElement={this.renderElement}
selectedElements={this.state.selectedProjects}
- withPaging={true}
+ withPaging
autoFocusSearch={false}
/>
);
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx
index 7949b8447c7..6bb9d8b78c6 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx
@@ -61,15 +61,15 @@ export default function QualityGatePermissionsAddModalRenderer(
</label>
<SearchSelect
inputId="quality-gate-permissions-add-modal-select-input"
- autoFocus={true}
+ autoFocus
isClearable={false}
placeholder=""
- defaultOptions={true}
+ defaultOptions
noOptionsMessage={() => noResultsText}
onChange={props.onSelection}
loadOptions={props.handleSearch}
getOptionValue={(opt) => (isUser(opt) ? opt.login : opt.name)}
- large={true}
+ large
components={{
Option: optionRenderer,
SingleValue: singleValueRenderer,
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsRenderer.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsRenderer.tsx
index 8e110cf87af..3daa2daec75 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsRenderer.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsRenderer.tsx
@@ -91,7 +91,7 @@ export default function QualityGatePermissionsRenderer(props: QualityGatePermiss
: translate('quality_gates.permissions.remove.group')
}
confirmButtonText={translate('remove')}
- isDestructive={true}
+ isDestructive
confirmData={permissionToDelete}
onClose={props.onCloseDeletePermission}
onConfirm={props.onConfirmDeletePermission}
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/RenameQualityGateForm.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/RenameQualityGateForm.tsx
index 76ed4083772..f1dc6dc79fa 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/RenameQualityGateForm.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/RenameQualityGateForm.tsx
@@ -78,11 +78,11 @@ class RenameQualityGateForm extends React.PureComponent<Props, State> {
<MandatoryFieldMarker />
</label>
<input
- autoFocus={true}
+ autoFocus
id="quality-gate-form-name"
maxLength={100}
onChange={this.handleNameChange}
- required={true}
+ required
size={50}
type="text"
value={name}