debian-mirror-gitlab/app/assets/javascripts/pipelines/mixins/graph_pipeline_bundle_mixin.js
2019-07-07 11:18:12 +05:30

16 lines
453 B
JavaScript

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.')));
},
},
};