|
@@ -505,34 +505,37 @@ class IssueRuleEditor extends AsyncView<Props, State> {
|
|
|
|
|
|
<StepContent>
|
|
|
<StepLead>
|
|
|
- {tct('[when:When] an issue matches [selector] of the following', {
|
|
|
- when: <Badge />,
|
|
|
- selector: (
|
|
|
- <EmbeddedWrapper>
|
|
|
- <EmbeddedSelectField
|
|
|
- className={classNames({
|
|
|
- error: this.hasError('actionMatch'),
|
|
|
- })}
|
|
|
- inline={false}
|
|
|
- styles={{
|
|
|
- control: provided => ({
|
|
|
- ...provided,
|
|
|
- minHeight: '20px',
|
|
|
- height: '20px',
|
|
|
- }),
|
|
|
- }}
|
|
|
- isSearchable={false}
|
|
|
- isClearable={false}
|
|
|
- name="actionMatch"
|
|
|
- required
|
|
|
- flexibleControlStateSize
|
|
|
- choices={ACTION_MATCH_CHOICES}
|
|
|
- onChange={val => this.handleChange('actionMatch', val)}
|
|
|
- disabled={!hasAccess}
|
|
|
- />
|
|
|
- </EmbeddedWrapper>
|
|
|
- ),
|
|
|
- })}
|
|
|
+ {tct(
|
|
|
+ '[when:When] an issue meets [selector] of the following conditions',
|
|
|
+ {
|
|
|
+ when: <Badge />,
|
|
|
+ selector: (
|
|
|
+ <EmbeddedWrapper>
|
|
|
+ <EmbeddedSelectField
|
|
|
+ className={classNames({
|
|
|
+ error: this.hasError('actionMatch'),
|
|
|
+ })}
|
|
|
+ inline={false}
|
|
|
+ styles={{
|
|
|
+ control: provided => ({
|
|
|
+ ...provided,
|
|
|
+ minHeight: '20px',
|
|
|
+ height: '20px',
|
|
|
+ }),
|
|
|
+ }}
|
|
|
+ isSearchable={false}
|
|
|
+ isClearable={false}
|
|
|
+ name="actionMatch"
|
|
|
+ required
|
|
|
+ flexibleControlStateSize
|
|
|
+ choices={ACTION_MATCH_CHOICES}
|
|
|
+ onChange={val => this.handleChange('actionMatch', val)}
|
|
|
+ disabled={!hasAccess}
|
|
|
+ />
|
|
|
+ </EmbeddedWrapper>
|
|
|
+ ),
|
|
|
+ }
|
|
|
+ )}
|
|
|
</StepLead>
|
|
|
<RuleNodeList
|
|
|
nodes={this.state.configs?.conditions ?? null}
|