Commit c9a29d3e authored by Luke Bennett's avatar Luke Bennett

Resolve header_component

parent 1f159a9f
...@@ -19,15 +19,11 @@ ...@@ -19,15 +19,11 @@
required: true, required: true,
}, },
}, },
<<<<<<< HEAD
=======
>>>>>>> upstream/master
data() { data() {
return { return {
actions: this.getActions(), actions: this.getActions(),
}; };
<<<<<<< HEAD
}, },
computed: { computed: {
...@@ -67,47 +63,6 @@ ...@@ -67,47 +63,6 @@
}); });
} }
=======
},
computed: {
status() {
return this.pipeline.details && this.pipeline.details.status;
},
shouldRenderContent() {
return !this.isLoading && Object.keys(this.pipeline).length;
},
},
watch: {
pipeline() {
this.actions = this.getActions();
},
},
methods: {
postAction(action) {
const index = this.actions.indexOf(action);
this.$set(this.actions[index], 'isLoading', true);
eventHub.$emit('headerPostAction', action);
},
getActions() {
const actions = [];
if (this.pipeline.retry_path) {
actions.push({
label: 'Retry',
path: this.pipeline.retry_path,
cssClass: 'js-retry-button btn btn-inverted-secondary',
type: 'button',
isLoading: false,
});
}
>>>>>>> upstream/master
if (this.pipeline.cancel_path) { if (this.pipeline.cancel_path) {
actions.push({ actions.push({
label: 'Cancel running', label: 'Cancel running',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment