diff options
author | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-02-21 22:23:58 +0100 |
---|---|---|
committer | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-02-21 22:23:58 +0100 |
commit | 11c1fc1fae5810123f683630c92bf1e9e7eab3d0 (patch) | |
tree | f1d0a5a73539b8b7be172be6cb91ccaf6b3dd420 /app/assets/javascripts/pipelines/pipeline_details_bundle.js | |
parent | 84016f8335f885538dd1ddc9b88cc716324b9613 (diff) | |
parent | 88870c871eeb55ff43cf638ba8d7307b263393c3 (diff) | |
download | gitlab-ce-11c1fc1fae5810123f683630c92bf1e9e7eab3d0.tar.gz |
Resolved conflicts with master
Diffstat (limited to 'app/assets/javascripts/pipelines/pipeline_details_bundle.js')
-rw-r--r-- | app/assets/javascripts/pipelines/pipeline_details_bundle.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/assets/javascripts/pipelines/pipeline_details_bundle.js b/app/assets/javascripts/pipelines/pipeline_details_bundle.js index d88d280cb3f..705a60b3ba2 100644 --- a/app/assets/javascripts/pipelines/pipeline_details_bundle.js +++ b/app/assets/javascripts/pipelines/pipeline_details_bundle.js @@ -1,10 +1,14 @@ import Vue from 'vue'; -import Flash from '../flash'; -import PipelinesMediator from './pipeline_details_mediatior'; +import Flash from '~/flash'; +import Translate from '~/vue_shared/translate'; +import { __ } from '~/locale'; +import PipelinesMediator from './pipeline_details_mediator'; import pipelineGraph from './components/graph/graph_component.vue'; import pipelineHeader from './components/header_component.vue'; import eventHub from './event_hub'; +Vue.use(Translate); + document.addEventListener('DOMContentLoaded', () => { const dataset = document.querySelector('.js-pipeline-details-vue').dataset; @@ -54,7 +58,7 @@ document.addEventListener('DOMContentLoaded', () => { postAction(action) { this.mediator.service.postAction(action.path) .then(() => this.mediator.refreshPipeline()) - .catch(() => new Flash('An error occurred while making the request.')); + .catch(() => Flash(__('An error occurred while making the request.'))); }, }, render(createElement) { |