- aggiornato catalogo lista con filtri per editori e grafico
This commit is contained in:
@@ -1778,6 +1778,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
this.providers = (res.data.providers) ? [...res.data.providers] : []
|
||||
|
||||
Products.catprods = (res.data.catprods) ? [...res.data.catprods] : []
|
||||
Products.catprtotali = (res.data.catprtotali) ? [...res.data.catprtotali] : []
|
||||
Products.collane = (res.data.collane) ? [...res.data.collane] : []
|
||||
Products.subcatprods = (res.data.subcatprods) ? [...res.data.subcatprods] : []
|
||||
Products.catprods_gas = (res.data.catprods_gas) ? [...res.data.catprods_gas] : []
|
||||
@@ -2108,7 +2109,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
getTableJoinByName(table: string, addall?: boolean, addnone?: boolean, filter?: any, value2?: any) {
|
||||
|
||||
let myarr: any = []
|
||||
if (table === 'permissions') myarr = [shared_consts.Permissions.Admin, shared_consts.Permissions.Manager, shared_consts.Permissions.Teacher, shared_consts.Permissions.Facilitatore, shared_consts.Permissions.Editor, shared_consts.Permissions.Zoomeri, shared_consts.Permissions.Department]
|
||||
if (table === 'permissions') myarr = [shared_consts.Permissions.Admin, shared_consts.Permissions.Manager, shared_consts.Permissions.Teacher, shared_consts.Permissions.Facilitatore, shared_consts.Permissions.Editor, shared_consts.Permissions.Zoomeri, shared_consts.Permissions.Department, shared_consts.Permissions.Grafico]
|
||||
else if (table === 'accepted') myarr = [shared_consts.Accepted.CHECK_READ_GUIDELINES, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI]
|
||||
else if (table === 'fieldstype') myarr = costanti.FieldTypeArr
|
||||
else if (table === 'metodo_pagamento') myarr = tools.SelectMetodiPagamento
|
||||
@@ -2160,8 +2161,10 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
myarr = newarr
|
||||
}
|
||||
|
||||
if (addall)
|
||||
myarr = [costanti.FILTER_TUTTI, ...myarr]
|
||||
if (addall) {
|
||||
myarr = [costanti.FILTER_TUTTI, ...myarr]
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (addnone) {
|
||||
|
||||
Reference in New Issue
Block a user