diff options
Diffstat (limited to 'app/assets/javascripts/pages')
-rw-r--r-- | app/assets/javascripts/pages/projects/pipelines/show/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/pages/projects/pipelines/show/index.js b/app/assets/javascripts/pages/projects/pipelines/show/index.js index c02c8631bb2..ff5702c76f2 100644 --- a/app/assets/javascripts/pages/projects/pipelines/show/index.js +++ b/app/assets/javascripts/pages/projects/pipelines/show/index.js @@ -1,5 +1,6 @@ import Vue from 'vue'; +import { __ } from '../../../../locale'; import Flash from '../../../../flash'; import PipelinesMediator from '../../../../pipelines/pipeline_details_mediatior'; import pipelineGraph from '../../../../pipelines/components/graph/graph_component.vue'; @@ -57,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(() => new Flash(__('An error occurred while making the request.'))); }, }, render(createElement) { |