mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 13:55:01 +02:00
Rename userPreferenceService to userService
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import SettingTabs from '@/layouts/SettingTabs.vue'
|
||||
import groupService from '@/services/groupService'
|
||||
import userPreferenceService from '@/services/userPreferenceService'
|
||||
import userService from '@/services/userService'
|
||||
import appSettingService from '@/services/appSettingService'
|
||||
import { useUserStore } from '@/stores/user'
|
||||
import { useAppSettingsStore } from '@/stores/appSettings'
|
||||
@ -70,7 +70,7 @@
|
||||
})
|
||||
|
||||
user.$subscribe((mutation) => {
|
||||
userPreferenceService.update(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') })
|
||||
|
||||
if(mutation.events.key === 'lang' && getActiveLanguage() !== mutation.events.newValue) {
|
||||
|
Reference in New Issue
Block a user