- aggiornati anche i ContribTypes che appaiono sulla card degli annunci
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user