ver: 1.1.21:
- Lista dei Cataloghi - Gestione Cataloghi in base alla configurazione
This commit is contained in:
@@ -39,7 +39,7 @@ import { Router } from 'vue-router'
|
||||
import { useProjectStore } from '@store/Projects'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { costanti } from '@costanti'
|
||||
import { IReaction, IBookmark, ISeen, IFavBook, IAttend, IFavorite, IGroupShort, IMyGroup, IUserAdmins } from '@model/UserStore'
|
||||
import { IReaction, IBookmark, ISeen, IFavBook, IAttend, IFavorite, IGroupShort, IMyGroup, IUserAdmins, IUserShort } from '@model/UserStore'
|
||||
|
||||
import globalroutines from '../globalroutines/index'
|
||||
import { useNotifStore } from '@store/NotifStore'
|
||||
@@ -214,6 +214,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
countusers: 0,
|
||||
lastparamquery: {},
|
||||
updateTables: false,
|
||||
lista_editori: null,
|
||||
}),
|
||||
|
||||
getters: {
|
||||
@@ -222,6 +223,10 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return (this.servercode === toolsext.ERR_SERVERFETCH)
|
||||
},
|
||||
|
||||
getListaEditori: (state: IUserState) => {
|
||||
return state.lista_editori
|
||||
},
|
||||
|
||||
getServerCode: (state: IUserState): number => (state.servercode ? state.servercode : 0),
|
||||
getMsg: (state: IUserState): string => (state.msg ? state.msg : ''),
|
||||
|
||||
@@ -2190,6 +2195,14 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
async loadListaEditori() {
|
||||
const globalStore = useGlobalStore();
|
||||
if (!this.lista_editori) {
|
||||
this.lista_editori = await globalStore.getObjOnServer('lista_editori');
|
||||
}
|
||||
return this.lista_editori
|
||||
},
|
||||
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user