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:
Diffstat (limited to 'app/assets/javascripts/labels/group_label_subscription.js')
-rw-r--r--app/assets/javascripts/labels/group_label_subscription.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/labels/group_label_subscription.js b/app/assets/javascripts/labels/group_label_subscription.js
index ea69e6585e6..c4f80d32a83 100644
--- a/app/assets/javascripts/labels/group_label_subscription.js
+++ b/app/assets/javascripts/labels/group_label_subscription.js
@@ -1,7 +1,7 @@
import $ from 'jquery';
import { __ } from '~/locale';
import { fixTitle, hide } from '~/tooltips';
-import createFlash from '~/flash';
+import { createAlert } from '~/flash';
import axios from '~/lib/utils/axios_utils';
const tooltipTitles = {
@@ -31,7 +31,7 @@ export default class GroupLabelSubscription {
this.$unsubscribeButtons.removeAttr('data-url');
})
.catch(() =>
- createFlash({
+ createAlert({
message: __('There was an error when unsubscribing from this label.'),
}),
);
@@ -50,7 +50,7 @@ export default class GroupLabelSubscription {
.then(() => GroupLabelSubscription.setNewTooltip($btn))
.then(() => this.toggleSubscriptionButtons())
.catch(() =>
- createFlash({
+ createAlert({
message: __('There was an error when subscribing to this label.'),
}),
);