diff options
Diffstat (limited to 'app/assets/javascripts/profile/account')
-rw-r--r-- | app/assets/javascripts/profile/account/components/update_username.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/profile/account/components/update_username.vue b/app/assets/javascripts/profile/account/components/update_username.vue index c99133fd251..b038b78088f 100644 --- a/app/assets/javascripts/profile/account/components/update_username.vue +++ b/app/assets/javascripts/profile/account/components/update_username.vue @@ -1,7 +1,7 @@ <script> import { GlSafeHtmlDirective as SafeHtml, GlButton, GlModal, GlModalDirective } from '@gitlab/ui'; import { escape } from 'lodash'; -import createFlash from '~/flash'; +import { createAlert, VARIANT_INFO } from '~/flash'; import axios from '~/lib/utils/axios_utils'; import { __, s__, sprintf } from '~/locale'; @@ -85,12 +85,12 @@ Please update your Git repository remotes as soon as possible.`), return axios .put(this.actionUrl, putData) .then((result) => { - createFlash({ message: result.data.message, type: 'notice' }); + createAlert({ message: result.data.message, variant: VARIANT_INFO }); this.username = username; this.isRequestPending = false; }) .catch((error) => { - createFlash({ + createAlert({ message: error?.response?.data?.message || s__('Profiles|An error occurred while updating your username, please try again.'), |