Commit 35d75313 authored by David O'Regan's avatar David O'Regan

Merge branch '276431-swap-deprecated-flash-to-new-flash-in-container-registry' into 'master'

Swap deprecated flash to new flash in container registry

See merge request gitlab-org/gitlab!47275
parents 4ac61872 3d7569d0
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import { deprecatedCreateFlash as createFlash } from '~/flash'; import createFlash from '~/flash';
import Api from '~/api'; import Api from '~/api';
import * as types from './mutation_types'; import * as types from './mutation_types';
import { import {
...@@ -38,7 +38,7 @@ export const requestImagesList = ( ...@@ -38,7 +38,7 @@ export const requestImagesList = (
dispatch('receiveImagesListSuccess', { data, headers }); dispatch('receiveImagesListSuccess', { data, headers });
}) })
.catch(() => { .catch(() => {
createFlash(FETCH_IMAGES_LIST_ERROR_MESSAGE); createFlash({ message: FETCH_IMAGES_LIST_ERROR_MESSAGE });
}) })
.finally(() => { .finally(() => {
commit(types.SET_MAIN_LOADING, false); commit(types.SET_MAIN_LOADING, false);
......
import MockAdapter from 'axios-mock-adapter'; import MockAdapter from 'axios-mock-adapter';
import testAction from 'helpers/vuex_action_helper'; import testAction from 'helpers/vuex_action_helper';
import { TEST_HOST } from 'helpers/test_constants'; import { TEST_HOST } from 'helpers/test_constants';
import { deprecatedCreateFlash as createFlash } from '~/flash'; import createFlash from '~/flash';
import Api from '~/api'; import Api from '~/api';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import * as actions from '~/registry/explorer/stores/actions'; import * as actions from '~/registry/explorer/stores/actions';
......
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