- aggiornati anche i ContribTypes che appaiono sulla card degli annunci

This commit is contained in:
Surya Paolo
2025-12-07 10:26:30 +01:00
parent a4ca394e49
commit a22eca0f58
7 changed files with 57 additions and 15 deletions

View File

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

View File

@@ -4692,6 +4692,8 @@ export const colTableProducts = [
const colcontribtype = [
AddCol({ name: '_id', label_trans: 'others.value' }),
AddCol({ name: 'label', label_trans: 'proj.longdescr' }),
AddCol({ name: 'icon', label_trans: 'proj.icon' }),
AddCol({ name: 'color', label_trans: 'event.color' }),
AddCol({
name: 'showprice',
label_trans: 'event.showprice',