Skip to content

Commit

Permalink
fix(core): provide formatLabel option for all trigger types (#7007)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed May 15, 2019
1 parent 83bc152 commit 7639f80
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export class ConcourseTriggerTemplate extends React.Component<ITriggerTemplateCo
);
};

public static formatLabel = BaseBuildTriggerTemplate.formatLabel;

public render() {
return (
<BaseBuildTriggerTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { BuildServiceType } from 'core/ci';
import { ITriggerTemplateComponentProps } from 'core/pipeline/manualExecution/TriggerTemplate';

export class JenkinsTriggerTemplate extends React.Component<ITriggerTemplateComponentProps> {
public static formatLabel = BaseBuildTriggerTemplate.formatLabel;

public render() {
return <BaseBuildTriggerTemplate {...this.props} buildTriggerType={BuildServiceType.Jenkins} />;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class PipelineTrigger extends React.Component<IPipelineTriggerConfigProps
<Select
className="form-control input-sm"
onChange={(option: Option<string>) => this.onUpdateTrigger({ pipeline: option.value })}
options={pipelines.map(p => ({ label: p.id, value: p.id }))}
options={pipelines.map(p => ({ label: p.name, value: p.id }))}
placeholder={'Select a pipeline...'}
value={pipeline}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { BuildServiceType } from 'core/ci';
import { ITriggerTemplateComponentProps } from 'core/pipeline/manualExecution/TriggerTemplate';

export class TravisTriggerTemplate extends React.Component<ITriggerTemplateComponentProps> {
public static formatLabel = BaseBuildTriggerTemplate.formatLabel;

public render() {
return <BaseBuildTriggerTemplate {...this.props} buildTriggerType={BuildServiceType.Travis} />;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { BuildServiceType } from 'core/ci';
import { ITriggerTemplateComponentProps } from 'core/pipeline/manualExecution/TriggerTemplate';

export class WerckerTriggerTemplate extends React.Component<ITriggerTemplateComponentProps> {
public static formatLabel = BaseBuildTriggerTemplate.formatLabel;

public render() {
return <BaseBuildTriggerTemplate {...this.props} buildTriggerType={BuildServiceType.Wercker} />;
}
Expand Down

0 comments on commit 7639f80

Please sign in to comment.