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/vue_merge_request_widget/mr_widget_options.vue
parente84a2fdfc862ac63fe4be9df2f940c22a0c9aba3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue')
-rw-r--r--app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue24
1 files changed, 17 insertions, 7 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue b/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue
index 95804e11b4a..daaca62140c 100644
--- a/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue
+++ b/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.vue
@@ -10,7 +10,7 @@ import notify from '~/lib/utils/notify';
import { sprintf, s__, __ } from '~/locale';
import Project from '~/pages/projects/project';
import SmartInterval from '~/smart_interval';
-import { deprecatedCreateFlash as createFlash } from '../flash';
+import createFlash from '../flash';
import { setFaviconOverlay } from '../lib/utils/favicon';
import GroupedAccessibilityReportsApp from '../reports/accessibility_report/grouped_accessibility_reports_app.vue';
import GroupedCodequalityReportsApp from '../reports/codequality_report/grouped_codequality_reports_app.vue';
@@ -217,7 +217,9 @@ export default {
this.initWidget(data);
})
.catch(() =>
- createFlash(__('Unable to load the merge request widget. Try reloading the page.')),
+ createFlash({
+ message: __('Unable to load the merge request widget. Try reloading the page.'),
+ }),
);
},
beforeDestroy() {
@@ -298,7 +300,11 @@ export default {
cb.call(null, data);
}
})
- .catch(() => createFlash(__('Something went wrong. Please try again.')));
+ .catch(() =>
+ createFlash({
+ message: __('Something went wrong. Please try again.'),
+ }),
+ );
},
setFaviconHelper() {
if (this.mr.ciStatusFaviconPath) {
@@ -352,11 +358,11 @@ export default {
.catch(() => this.throwDeploymentsError());
},
throwDeploymentsError() {
- createFlash(
- __(
+ createFlash({
+ message: __(
'Something went wrong while fetching the environments for this merge request. Please try again.',
),
- );
+ });
},
fetchActionsContent() {
this.service
@@ -370,7 +376,11 @@ export default {
Project.initRefSwitcher();
}
})
- .catch(() => createFlash(__('Something went wrong. Please try again.')));
+ .catch(() =>
+ createFlash({
+ message: __('Something went wrong. Please try again.'),
+ }),
+ );
},
handleNotification(data) {
if (data.ci_status === this.mr.ciStatus) return;