diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-05-16 12:24:59 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-05-16 13:20:29 +0100 |
commit | f4aced6f6d7419f17fcaeacaab623edc8205baed (patch) | |
tree | 7d78639f78b5483b5fe219e6b8562aa9b7cec080 /app/assets/javascripts/pipelines/mixins/pipelines.js | |
parent | a55da0a95a7d38caed4070006f611e9eaea3e387 (diff) | |
download | gitlab-ce-f4aced6f6d7419f17fcaeacaab623edc8205baed.tar.gz |
Reloads pipeline table when dropdown action is clicked and closes the dropdown in the MR widget
Diffstat (limited to 'app/assets/javascripts/pipelines/mixins/pipelines.js')
-rw-r--r-- | app/assets/javascripts/pipelines/mixins/pipelines.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/pipelines/mixins/pipelines.js b/app/assets/javascripts/pipelines/mixins/pipelines.js index de0faf181e5..30b1eee186d 100644 --- a/app/assets/javascripts/pipelines/mixins/pipelines.js +++ b/app/assets/javascripts/pipelines/mixins/pipelines.js @@ -55,11 +55,13 @@ export default { eventHub.$on('postAction', this.postAction); eventHub.$on('retryPipeline', this.postAction); eventHub.$on('clickedDropdown', this.updateTable); + eventHub.$on('refreshPipelinesTable', this.fetchPipelines); }, beforeDestroy() { eventHub.$off('postAction', this.postAction); eventHub.$off('retryPipeline', this.postAction); eventHub.$off('clickedDropdown', this.updateTable); + eventHub.$off('refreshPipelinesTable', this.fetchPipelines); }, destroyed() { this.poll.stop(); |