diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 03:10:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 03:10:29 +0300 |
commit | 9f61aba53f7d9562b524496dd1686dc1591f0d7c (patch) | |
tree | c67668cab875508bcab7048c634f38f5c4723272 /app/assets/javascripts/contributors | |
parent | 104faef9725d678d5e4456108a5ee9c7a50a1281 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/contributors')
-rw-r--r-- | app/assets/javascripts/contributors/stores/actions.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/contributors/stores/actions.js b/app/assets/javascripts/contributors/stores/actions.js index 72aae3af692..4cc0a6a6509 100644 --- a/app/assets/javascripts/contributors/stores/actions.js +++ b/app/assets/javascripts/contributors/stores/actions.js @@ -1,4 +1,4 @@ -import { deprecatedCreateFlash as flash } from '~/flash'; +import createFlash from '~/flash'; import { __ } from '~/locale'; import service from '../services/contributors_service'; import * as types from './mutation_types'; @@ -13,5 +13,9 @@ export const fetchChartData = ({ commit }, endpoint) => { commit(types.SET_CHART_DATA, data); commit(types.SET_LOADING_STATE, false); }) - .catch(() => flash(__('An error occurred while loading chart data'))); + .catch(() => + createFlash({ + message: __('An error occurred while loading chart data'), + }), + ); }; |