diff options
Diffstat (limited to 'app/assets/javascripts/ide/stores/modules/pipelines')
-rw-r--r-- | app/assets/javascripts/ide/stores/modules/pipelines/actions.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/stores/modules/pipelines/actions.js b/app/assets/javascripts/ide/stores/modules/pipelines/actions.js index 5d5628016ce..ba8e1676513 100644 --- a/app/assets/javascripts/ide/stores/modules/pipelines/actions.js +++ b/app/assets/javascripts/ide/stores/modules/pipelines/actions.js @@ -1,7 +1,6 @@ import Visibility from 'visibilityjs'; import axios from 'axios'; import { __ } from '../../../../locale'; -import flash from '../../../../flash'; import Poll from '../../../../lib/utils/poll'; import service from '../../../services'; import { rightSidebarViews } from '../../../constants'; @@ -85,8 +84,10 @@ export const receiveJobsError = ({ commit, dispatch }, stage) => { 'setErrorMessage', { text: __('An error occured whilst loading the pipelines jobs.'), - action: stage => - dispatch('fetchJobs', stage).then(() => dispatch('setErrorMessage', null, { root: true })), + action: payload => + dispatch('fetchJobs', payload).then(() => + dispatch('setErrorMessage', null, { root: true }), + ), actionText: __('Please try again'), actionPayload: stage, }, |