summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/mixins/graph_pipeline_bundle_mixin.js
blob: dd79ade5bc960ac65a8bf53374e56d0122de2191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Flash from '~/flash';
import { __ } from '~/locale';

export default {
  methods: {
    clickTriggeredByPipeline() {},
    clickTriggeredPipeline() {},
    requestRefreshPipelineGraph() {
      // When an action is clicked
      // (wether in the dropdown or in the main nodes, we refresh the big graph)
      this.mediator
        .refreshPipeline()
        .catch(() => Flash(__('An error occurred while making the request.')));
    },
  },
};