mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 07:48:37 +02:00
Fix notification type
This commit is contained in:
@ -71,7 +71,7 @@
|
||||
|
||||
user.$subscribe((mutation) => {
|
||||
userService.updatePreference(mutation.events.key, mutation.events.newValue).then(response => {
|
||||
useNotifyStore().info({ type: 'is-success', text: trans('settings.forms.setting_saved') })
|
||||
useNotifyStore().success({ type: 'is-success', text: trans('settings.forms.setting_saved') })
|
||||
|
||||
if(mutation.events.key === 'lang' && getActiveLanguage() !== mutation.events.newValue) {
|
||||
user.applyLanguage()
|
||||
@ -86,7 +86,7 @@
|
||||
if (mutation.type == 'patch object') {
|
||||
for (const property in mutation.payload) {
|
||||
appSettingService.update(property, mutation.payload[property].value).then(response => {
|
||||
useNotifyStore().info({ type: 'is-success', text: trans('settings.forms.setting_saved') })
|
||||
useNotifyStore().success({ type: 'is-success', text: trans('settings.forms.setting_saved') })
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user