new version Visualizzazione Service

This commit is contained in:
Surya Paolo
2023-04-04 15:27:03 +02:00
parent 0365c58326
commit edcd244397
35 changed files with 841 additions and 55 deletions

View File

@@ -88,6 +88,11 @@ export const useCalendarStore = defineStore('CalendarStore', {
const ctrec = mystate.contribtype.find((mycontr) => mycontr._id === id)
return (ctrec) ? ctrec.label : ''
},
getColByContribType: (mystate: ICalendarState) => (id: string) => {
const ctrec = mystate.contribtype.find((mycontr) => mycontr._id === id)
return (ctrec && ctrec.color) ? ctrec.color : 'green'
},
getContribtypeRecByLabel: (mystate: ICalendarState) => (label: string) => {
const ctrec = mystate.contribtype.find((mycontr) => mycontr.label === label)