diff options
Diffstat (limited to 'app/assets/javascripts/projects')
-rw-r--r-- | app/assets/javascripts/projects/tree/components/commit_pipeline_status_component.vue | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/app/assets/javascripts/projects/tree/components/commit_pipeline_status_component.vue b/app/assets/javascripts/projects/tree/components/commit_pipeline_status_component.vue index 12ee1ce2f0c..60fd3ed5ea7 100644 --- a/app/assets/javascripts/projects/tree/components/commit_pipeline_status_component.vue +++ b/app/assets/javascripts/projects/tree/components/commit_pipeline_status_component.vue @@ -21,14 +21,6 @@ export default { type: String, required: true, }, - /* This prop can be used to replace some of the `render_commit_status` - used across GitLab, this way we could use this vue component and add a - realtime status where it makes sense - realtime: { - type: Boolean, - required: false, - default: true, - }, */ }, data() { return { @@ -47,6 +39,9 @@ export default { this.service = new CommitPipelineService(this.endpoint); this.initPolling(); }, + beforeDestroy() { + this.poll.stop(); + }, methods: { successCallback(res) { const { pipelines } = res.data; @@ -95,9 +90,6 @@ export default { .catch(this.errorCallback); }, }, - destroy() { - this.poll.stop(); - }, }; </script> <template> |