mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-23 05:21:54 +02: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) {
|
ids.forEach(function(id) {
|
||||||
this.items = this.items.filter(a => a.id !== 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()
|
this.refresh()
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
user.$subscribe((mutation) => {
|
user.$subscribe((mutation) => {
|
||||||
userService.updatePreference(mutation.events.key, mutation.events.newValue).then(response => {
|
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) {
|
if(mutation.events.key === 'lang' && getActiveLanguage() !== mutation.events.newValue) {
|
||||||
user.applyLanguage()
|
user.applyLanguage()
|
||||||
@ -86,7 +86,7 @@
|
|||||||
if (mutation.type == 'patch object') {
|
if (mutation.type == 'patch object') {
|
||||||
for (const property in mutation.payload) {
|
for (const property in mutation.payload) {
|
||||||
appSettingService.update(property, mutation.payload[property].value).then(response => {
|
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…
x
Reference in New Issue
Block a user