Pipeline name doesn't display correctly when trying to pause/resume it from the "Active runs" tab - inline style (fix for
@@ -664,9 +664,9 @@ export default class RunTable extends localization.LocalizedReactComponent {
}
Modal.confirm({
title: (
- <span>
- Do you want to pause {this.renderPipelineName(run, true) || this.localizedString('pipeline')}?
- </span>
+ <Row>
+ Do you want to pause {this.renderPipelineName(run, true, true) || this.localizedString('pipeline')}?
+ </Row>
),
content,
style: {
@@ -684,7 +684,7 @@ export default class RunTable extends localization.LocalizedReactComponent {
Modal.confirm({
title: (
<span>
- Do you want to resume {this.renderPipelineName(run, true) || this.localizedString('pipeline')}?
+ Do you want to resume {this.renderPipelineName(run, true, true) || this.localizedString('pipeline')}?
</span>
),
style: {
@@ -816,8 +816,11 @@ export default class RunTable extends localization.LocalizedReactComponent {
);
};
- renderPipelineName = (run, renderDockerImageName = false) => {
+ renderPipelineName = (run, renderDockerImageName = false, inline = false) => {
if (run.pipelineName && run.version) {
+ if (inline) {
+ return `${run.pipelineName} (${run.version})`;
+ }
return (
<div>
<Row>
