diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 09:06:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 09:06:28 +0300 |
commit | 404bb44ef7dfc2b0d4da6b946b8b96007aca4b56 (patch) | |
tree | dbc4049f82cb048b471e853c6015ac303981cef9 /app/assets/javascripts | |
parent | d14219486e0f3b6e642eaeff0862dea169e5d260 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts')
-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> |