interface Props {
fetchIssues: (x: {}) => Promise<{ issues: Issue[]; paging: Paging }>;
+ needIssueSync?: boolean;
onClose: () => void;
onDone: () => void;
refreshBranchStatus: () => void;
);
renderForm = () => {
+ const { needIssueSync } = this.props;
const { issues, loading, paging } = this.state;
const limitReached = paging && paging.total > MAX_PAGE_SIZE;
{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()}