mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 06:38:34 +01:00
Fix notification type
This commit is contained in:
parent
46a58ecb29
commit
0a53549019
2
resources/js_vue3/stores/twofaccounts.js
vendored
2
resources/js_vue3/stores/twofaccounts.js
vendored
@ -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()
|
||||
|
@ -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') })
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user