]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19986 Remove Add/Remove tags actions from bulk change modal when re-indexing
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Thu, 20 Jul 2023 12:34:34 +0000 (14:34 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 21 Jul 2023 20:03:16 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx

index 8206deb02b665030fceb6d584ad2cc15547f38bf..bc3150259378911a0dddcaa2f17efe98f30f22af 100644 (file)
@@ -50,6 +50,7 @@ import TagsSelect from './TagsSelect';
 
 interface Props {
   fetchIssues: (x: {}) => Promise<{ issues: Issue[]; paging: Paging }>;
+  needIssueSync?: boolean;
   onClose: () => void;
   onDone: () => void;
   refreshBranchStatus: () => void;
@@ -432,6 +433,7 @@ export class BulkChangeModal extends React.PureComponent<Props, State> {
   );
 
   renderForm = () => {
+    const { needIssueSync } = this.props;
     const { issues, loading, paging } = this.state;
 
     const limitReached = paging && paging.total > MAX_PAGE_SIZE;
@@ -454,8 +456,9 @@ export class BulkChangeModal extends React.PureComponent<Props, State> {
           {this.renderAssigneeField()}
           {this.renderTypeField()}
           {this.renderSeverityField()}
-          {this.renderTagsField(InputField.addTags, 'issue.add_tags', true)}
-          {this.renderTagsField(InputField.removeTags, 'issue.remove_tags', false)}
+          {!needIssueSync && this.renderTagsField(InputField.addTags, 'issue.add_tags', true)}
+          {!needIssueSync &&
+            this.renderTagsField(InputField.removeTags, 'issue.remove_tags', false)}
           {this.renderTransitionsField()}
           {this.renderCommentField()}
           {issues.length > 0 && this.renderNotificationsField()}