Set up the Options view bound to the prefs & settings stores

This commit is contained in:
Bubka
2023-10-04 09:30:05 +02:00
parent 39281ec428
commit c448628e1b
18 changed files with 557 additions and 42 deletions

View File

@ -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: {
},
})