diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-10 18:56:39 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-03-10 18:56:39 +0000 |
commit | c07d3c5d84b2261c654ed94d77920cb43342dd00 (patch) | |
tree | 33e81502a23c16a50b7b80fec2a70cf3665f62fd | |
parent | 45b8b88c0107adfd159ed3bc60c1af285fdaa204 (diff) | |
parent | dfee47e066193599a29c4326ace3f7e97efece2d (diff) | |
download | gitlab-ce-c07d3c5d84b2261c654ed94d77920cb43342dd00.tar.gz |
Merge branch '20450-fix-ujs-actions-part-3-step3' into 20450-fix-ujs-actions-part-3-step4
* 20450-fix-ujs-actions-part-3-step3:
Add the same eventhub to commits and merge requests pipelines table
-rw-r--r-- | app/assets/javascripts/commit/pipelines/pipelines_table.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/commit/pipelines/pipelines_table.js b/app/assets/javascripts/commit/pipelines/pipelines_table.js index ee212083f66..4e7ed76d4e3 100644 --- a/app/assets/javascripts/commit/pipelines/pipelines_table.js +++ b/app/assets/javascripts/commit/pipelines/pipelines_table.js @@ -6,6 +6,8 @@ import PipelinesService from './pipelines_service'; import PipelineStore from './pipelines_store'; import '../../lib/utils/common_utils'; import '../../vue_shared/vue_resource_interceptor'; +import eventHub from '../../vue_pipelines_index/event_hub'; + /** * * Uses `pipelines-table-component` to render Pipelines table with an API call. @@ -52,6 +54,8 @@ export default Vue.component('pipelines-table', { this.service = new PipelinesService(this.endpoint); this.fetchPipelines(); + + eventHub.$on('refreshPipelines', this.fetchPipelines); }, beforeUpdate() { |