diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
commit | ee664acb356f8123f4f6b00b73c1e1cf0866c7fb (patch) | |
tree | f8479f94a28f66654c6a4f6fb99bad6b4e86a40e /app/assets/javascripts/jobs/store/actions.js | |
parent | 62f7d5c5b69180e82ae8196b7b429eeffc8e7b4f (diff) |
Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42
Diffstat (limited to 'app/assets/javascripts/jobs/store/actions.js')
-rw-r--r-- | app/assets/javascripts/jobs/store/actions.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/assets/javascripts/jobs/store/actions.js b/app/assets/javascripts/jobs/store/actions.js index 927ba7c7e1e..272181f830c 100644 --- a/app/assets/javascripts/jobs/store/actions.js +++ b/app/assets/javascripts/jobs/store/actions.js @@ -1,5 +1,5 @@ import Visibility from 'visibilityjs'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import axios from '~/lib/utils/axios_utils'; import { setFaviconOverlay, resetFavicon } from '~/lib/utils/favicon'; import httpStatusCodes from '~/lib/utils/http_status'; @@ -100,7 +100,7 @@ export const receiveJobSuccess = ({ commit }, data = {}) => { }; export const receiveJobError = ({ commit }) => { commit(types.RECEIVE_JOB_ERROR); - createFlash({ + createAlert({ message: __('An error occurred while fetching the job.'), }); resetFavicon(); @@ -205,14 +205,14 @@ export const receiveJobLogSuccess = ({ commit }, log) => commit(types.RECEIVE_JO export const receiveJobLogError = ({ dispatch }) => { dispatch('stopPollingJobLog'); - createFlash({ + createAlert({ message: __('An error occurred while fetching the job log.'), }); }; export const receiveJobLogUnauthorizedError = ({ dispatch }) => { dispatch('stopPollingJobLog'); - createFlash({ + createAlert({ message: __('The current user is not authorized to access the job log.'), }); }; @@ -254,7 +254,7 @@ export const receiveJobsForStageSuccess = ({ commit }, data) => export const receiveJobsForStageError = ({ commit }) => { commit(types.RECEIVE_JOBS_FOR_STAGE_ERROR); - createFlash({ + createAlert({ message: __('An error occurred while fetching the jobs.'), }); }; @@ -271,7 +271,7 @@ export const triggerManualJob = ({ state }, variables) => { job_variables_attributes: parsedVariables, }) .catch(() => - createFlash({ + createAlert({ message: __('An error occurred while triggering the job.'), }), ); |