Site Configuration by Server Params (confsites and confpages)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user