Site Configuration by Server Params (confsites and confpages)

This commit is contained in:
Surya Paolo
2022-11-28 14:00:15 +01:00
parent fab0dbbb72
commit 58dc1dfdcc
76 changed files with 2504 additions and 5004 deletions

View File

@@ -364,7 +364,10 @@ export const useProjectStore = defineStore({
async dbLoad({ checkPending, onlyiffirsttime }: {checkPending: boolean, onlyiffirsttime: boolean}) {
if (!static_data.functionality.ENABLE_PROJECTS_LOADING)
const userStore = useUserStore()
const globalStore = useGlobalStore()
if (!globalStore.site.confpages.enableProj)
return null
if (onlyiffirsttime) {
@@ -382,11 +385,9 @@ export const useProjectStore = defineStore({
// console.log('dbLoad', nametable, checkPending, 'userid=', userStore.my._id)
const userStore = useUserStore()
const globalStore = useGlobalStore()
const ris = await Api.SendReq('/projects/' + userStore.my._id, 'GET', null)
.then((res) => {
if (res.data.projects) { // console.log('RISULTANTE CATEGORIES DAL SERVER = ', res.data.categories)
this.projects = res.data.projects
} else {