mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-13 15:37:08 +02:00
Set up the Options view bound to the prefs & settings stores
This commit is contained in:
16
resources/js_vue3/stores/appSettings.js
vendored
16
resources/js_vue3/stores/appSettings.js
vendored
@ -1,18 +1,14 @@
|
||||
import { defineStore } from 'pinia'
|
||||
// import { useApi } from '@/api/useAPI.js'
|
||||
|
||||
// const api = useApi()
|
||||
import appSettingService from '@/services/appSettingService'
|
||||
|
||||
export const useAppSettingsStore = defineStore({
|
||||
id: 'settings',
|
||||
id: 'appSettings',
|
||||
|
||||
state: () => {
|
||||
state: () => {
|
||||
return { ...window.appSettings }
|
||||
},
|
||||
|
||||
actions: {
|
||||
updateSetting(setting) {
|
||||
this.settings = { ...this.state.settings, ...setting }
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user