Animations, Policy, Toolbar Colors
This commit is contained in:
@@ -9,6 +9,7 @@ import { CMyFieldDb } from '@/components/CMyFieldDb'
|
||||
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { costanti } from '@costanti'
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Confsite',
|
||||
@@ -24,12 +25,34 @@ export default defineComponent({
|
||||
mysite.value = await globalStore.caricaTabella('sites', process.env.APP_ID!)
|
||||
}
|
||||
|
||||
function save(newval: any) {
|
||||
console.log('ConfSite save')
|
||||
tools.updateFonts(newval)
|
||||
}
|
||||
|
||||
function saveCol(mycol: any) {
|
||||
if (globalStore.site?.confpages) {
|
||||
globalStore.site.confpages.col_toolbar = mycol
|
||||
}
|
||||
}
|
||||
|
||||
function saveBgCol(mycol: any) {
|
||||
if (globalStore.site?.confpages) {
|
||||
globalStore.site.confpages.col_bgfooter = mycol
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
mysite,
|
||||
costanti,
|
||||
tab,
|
||||
tools,
|
||||
save,
|
||||
saveCol,
|
||||
saveBgCol,
|
||||
globalStore,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user