diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-30 03:08:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-30 03:08:26 +0300 |
commit | d210b1bee140e0f2c1f09635dd14a872e07a3100 (patch) | |
tree | 65c5c0002ef2038e8a46d40067810923851b7926 /app/assets/javascripts/profile/preferences/components/profile_preferences.vue | |
parent | 836ddfc35d1778675b3bd6d51f51972f36a96bbe (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/profile/preferences/components/profile_preferences.vue')
-rw-r--r-- | app/assets/javascripts/profile/preferences/components/profile_preferences.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/profile/preferences/components/profile_preferences.vue b/app/assets/javascripts/profile/preferences/components/profile_preferences.vue index b30b6a2faa9..a33a20b49f6 100644 --- a/app/assets/javascripts/profile/preferences/components/profile_preferences.vue +++ b/app/assets/javascripts/profile/preferences/components/profile_preferences.vue @@ -1,6 +1,6 @@ <script> import { GlButton } from '@gitlab/ui'; -import createFlash, { FLASH_TYPES } from '~/flash'; +import { createAlert, VARIANT_DANGER, VARIANT_INFO } from '~/flash'; import { INTEGRATION_VIEW_CONFIGS, i18n } from '../constants'; import IntegrationView from './integration_view.vue'; @@ -94,15 +94,15 @@ export default { return; } updateClasses(this.bodyClasses, this.getSelectedTheme().css_class, this.selectedLayout); - const { message = this.$options.i18n.defaultSuccess, type = FLASH_TYPES.NOTICE } = + const { message = this.$options.i18n.defaultSuccess, variant = VARIANT_INFO } = customEvent?.detail?.[0] || {}; - createFlash({ message, type }); + createAlert({ message, variant }); this.isSubmitEnabled = true; }, handleError(customEvent) { - const { message = this.$options.i18n.defaultError, type = FLASH_TYPES.ALERT } = + const { message = this.$options.i18n.defaultError, variant = VARIANT_DANGER } = customEvent?.detail?.[0] || {}; - createFlash({ message, type }); + createAlert({ message, variant }); this.isSubmitEnabled = true; }, }, |