Skip to content
Snippets Groups Projects

Add auto-cancel for pending pipelines on branch, if they are not HEAD

Compare and Show latest version
15 files
+ 61
34
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -36,7 +36,7 @@ export default {
@@ -36,7 +36,7 @@ export default {
computed: {
computed: {
cssClasses() {
cssClasses() {
return `ci-status ci-${this.pipeline.details.status.group}`;
return `ci-status ci-${this.pipeline.details.status.group} has-tooltip`;
},
},
detailsPath() {
detailsPath() {
@@ -47,12 +47,17 @@ export default {
@@ -47,12 +47,17 @@ export default {
content() {
content() {
return `${this.svg} ${this.pipeline.details.status.text}`;
return `${this.svg} ${this.pipeline.details.status.text}`;
},
},
 
 
tooltipTitle() {
 
return this.pipeline.details.status_tooltip;
 
}
},
},
template: `
template: `
<td class="commit-link">
<td class="commit-link">
<a
<a
:class="cssClasses"
:class="cssClasses"
:href="detailsPath"
:href="detailsPath"
 
:title="tooltipTitle"
v-html="content">
v-html="content">
</a>
</a>
</td>
</td>
Loading