Commit b2ff2e8d authored by Phil Hughes's avatar Phil Hughes

fixed eslint

parent b24a55a9
import $ from 'jquery'; import $ from 'jquery';
import { sprintf, __ } from '~/locale'; import { sprintf, __ } from '~/locale';
import flash from '~/flash'; import flash from '~/flash';
import { stripHtml } from '~/lib/utils/text_utility';
import * as rootTypes from '../../mutation_types'; import * as rootTypes from '../../mutation_types';
import { createCommitPayload, createNewMergeRequestUrl } from '../../utils'; import { createCommitPayload, createNewMergeRequestUrl } from '../../utils';
import router from '../../../ide_router'; import router from '../../../ide_router';
......
import Visibility from 'visibilityjs'; import Visibility from 'visibilityjs';
import axios from 'axios'; import axios from 'axios';
import { __ } from '../../../../locale'; import { __ } from '../../../../locale';
import flash from '../../../../flash';
import Poll from '../../../../lib/utils/poll'; import Poll from '../../../../lib/utils/poll';
import service from '../../../services'; import service from '../../../services';
import { rightSidebarViews } from '../../../constants'; import { rightSidebarViews } from '../../../constants';
...@@ -85,8 +84,10 @@ export const receiveJobsError = ({ commit, dispatch }, stage) => { ...@@ -85,8 +84,10 @@ export const receiveJobsError = ({ commit, dispatch }, stage) => {
'setErrorMessage', 'setErrorMessage',
{ {
text: __('An error occured whilst loading the pipelines jobs.'), text: __('An error occured whilst loading the pipelines jobs.'),
action: stage => action: payload =>
dispatch('fetchJobs', stage).then(() => dispatch('setErrorMessage', null, { root: true })), dispatch('fetchJobs', payload).then(() =>
dispatch('setErrorMessage', null, { root: true }),
),
actionText: __('Please try again'), actionText: __('Please try again'),
actionPayload: stage, actionPayload: stage,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment