From 9558d697cbf2d889bfed1ce03e40374795d6d2fa Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Thu, 20 Jul 2023 14:34:34 +0200 Subject: [PATCH] SONAR-19986 Remove Add/Remove tags actions from bulk change modal when re-indexing --- .../src/main/js/apps/issues/components/BulkChangeModal.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx index 8206deb02b6..bc315025937 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.tsx @@ -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 { ); 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 { {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()} -- 2.39.5