Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-03 00:10:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-03 00:10:00 +0300
commite2191b0a18b1fc6b7a70c60cdc31277883095742 (patch)
tree53d0cdac1e145230109d80849b7ffe00645a5dc1 /app/assets/javascripts/error_tracking
parente84a2fdfc862ac63fe4be9df2f940c22a0c9aba3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/error_tracking')
-rw-r--r--app/assets/javascripts/error_tracking/components/error_details.vue12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/assets/javascripts/error_tracking/components/error_details.vue b/app/assets/javascripts/error_tracking/components/error_details.vue
index f05f0cb7c6d..0a15cb56447 100644
--- a/app/assets/javascripts/error_tracking/components/error_details.vue
+++ b/app/assets/javascripts/error_tracking/components/error_details.vue
@@ -13,7 +13,7 @@ import {
GlIcon,
} from '@gitlab/ui';
import { mapActions, mapGetters, mapState } from 'vuex';
-import { deprecatedCreateFlash as createFlash } from '~/flash';
+import createFlash from '~/flash';
import { __, sprintf, n__ } from '~/locale';
import Tracking from '~/tracking';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
@@ -88,7 +88,10 @@ export default {
},
pollInterval: 2000,
update: (data) => data.project.sentryErrors.detailedError,
- error: () => createFlash(__('Failed to load error details from Sentry.')),
+ error: () =>
+ createFlash({
+ message: __('Failed to load error details from Sentry.'),
+ }),
result(res) {
if (res.data.project?.sentryErrors?.detailedError) {
this.$apollo.queries.error.stopPolling();
@@ -225,7 +228,10 @@ export default {
if (Date.now() > this.errorPollTimeout) {
this.$apollo.queries.error.stopPolling();
this.errorLoading = false;
- createFlash(__('Could not connect to Sentry. Refresh the page to try again.'), 'warning');
+ createFlash({
+ message: __('Could not connect to Sentry. Refresh the page to try again.'),
+ type: 'warning',
+ });
}
},
trackPageViews() {