Fix notification type

This commit is contained in:
Bubka 2023-10-27 15:43:28 +02:00
parent 46a58ecb29
commit 0a53549019
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ export const useTwofaccounts = defineStore({
ids.forEach(function(id) {
this.items = this.items.filter(a => a.id !== id)
})
useNotifyStore().info({ text: trans('twofaccounts.accounts_deleted') })
useNotifyStore().success({ text: trans('twofaccounts.accounts_deleted') })
})
this.refresh()

View File

@ -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') })
})
}
}