Notifiche - Tutti - non letti
This commit is contained in:
@@ -265,6 +265,7 @@ export const costanti = {
|
||||
username_chip: 12000,
|
||||
link: 12500,
|
||||
listobj: 13000,
|
||||
|
||||
},
|
||||
|
||||
FieldTypeArr: [
|
||||
@@ -276,6 +277,11 @@ export const costanti = {
|
||||
{ label: 'Select', value: 32 },
|
||||
{ label: 'Number', value: 64 },
|
||||
{ label: 'crypted', value: 9000 },
|
||||
{ label: 'object', value: 10000 },
|
||||
{ label: 'separator', value: 11000 },
|
||||
{ label: 'username_chip', value: 12000 },
|
||||
{ label: 'link', value: 12500 },
|
||||
{ label: 'listobj', value: 13000 },
|
||||
],
|
||||
|
||||
TipoVisu: {
|
||||
|
||||
@@ -1598,6 +1598,11 @@ const colTableGeneric = [
|
||||
AddCol({ name: 'label', label_trans: 'proj.longdescr' }),
|
||||
]
|
||||
|
||||
const colTableGenTrans = [
|
||||
AddCol({ name: 'value', label_trans: 'others.value' }),
|
||||
AddCol({ name: 'labeltrans', label_trans: 'proj.longdescr' }),
|
||||
]
|
||||
|
||||
export const colTableOperator = [
|
||||
AddCol({ name: 'username', label_trans: 'reg.username_short' }),
|
||||
AddCol({ name: 'name', label_trans: 'reg.name' }),
|
||||
@@ -2710,9 +2715,18 @@ export const fieldsTable = {
|
||||
{
|
||||
value: 'usernotifs',
|
||||
label: 'Notifiche',
|
||||
columns: colTableGeneric,
|
||||
columns: colTableGenTrans,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
collabel: 'labeltrans',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'typenotifs',
|
||||
label: 'Tipi di Notifiche',
|
||||
columns: colTableGenTrans,
|
||||
colkey: 'value',
|
||||
collabel: 'labeltrans',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
ITodo,
|
||||
IUserFields,
|
||||
Privacy,
|
||||
TipoVisu, IGroup, IMySkill, IMyBacheca, IImgGallery, IMsgGlobParam, IUserExport,
|
||||
TipoVisu, IGroup, IMySkill, IMyBacheca, IImgGallery, IMsgGlobParam, IUserExport, ISpecialField,
|
||||
} from '@model'
|
||||
|
||||
import { addToDate } from '@quasar/quasar-ui-qcalendar'
|
||||
@@ -3527,7 +3527,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
|
||||
getValDb(keystr: string, serv: boolean, def?: any, table?: string, subkey?: any, id?: any, idmain?: any): any {
|
||||
getValDb(keystr: string, serv: boolean, def?: any, table?: string, subkey?: any, id?: any, idmain?: any, specialField?: ISpecialField): any {
|
||||
const globalStore = useGlobalStore()
|
||||
const todos = useTodoStore()
|
||||
const userStore = useUserStore()
|
||||
@@ -5544,7 +5544,17 @@ export const tools = {
|
||||
return myval
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
updateQueryStringParameter(uri: string, key: string, value: string) {
|
||||
const re = new RegExp('([?&])' + key + '=.*?(&|$)', 'i')
|
||||
const separator = uri.indexOf('?') !== -1 ? '&' : '?'
|
||||
if (uri.match(re)) {
|
||||
return uri.replace(re, '$1' + key + '=' + value + '$2')
|
||||
} else {
|
||||
return uri + separator + key + '=' + value
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// getLocale() {
|
||||
|
||||
@@ -5,6 +5,7 @@ import { static_data } from '@/db/static_data'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useTodoStore } from '@store/Todos'
|
||||
import { Router } from 'vue-router'
|
||||
import { ISpecialField } from 'model'
|
||||
|
||||
export const func_tools = {
|
||||
getLocale(vero ?: boolean): string {
|
||||
@@ -155,7 +156,7 @@ export const toolsext = {
|
||||
// this.$q.lang.set(mylang)
|
||||
},
|
||||
|
||||
getValDb(keystr: string, serv: boolean, def?: any, table?: string, subkey?: string, id?: any, idmain?: any, indrec?: number, subsubkey?: string): any | undefined {
|
||||
getValDb(keystr: string, serv: boolean, def?: any, table?: string, subkey?: string, id?: any, idmain?: any, indrec?: number, subsubkey?: string, specialField?: ISpecialField): any | undefined {
|
||||
|
||||
const todos = useTodoStore()
|
||||
const userStore = useUserStore()
|
||||
@@ -168,8 +169,23 @@ export const toolsext = {
|
||||
// @ts-ignore
|
||||
return userStore.my.profile[subkey][indrec][subsubkey]
|
||||
} else {
|
||||
// @ts-ignore
|
||||
return userStore.my.profile[subkey]
|
||||
|
||||
if (specialField && specialField.findsubkey && !!subkey) {
|
||||
// @ts-ignore
|
||||
const myrec = userStore.my.profile[subkey].filter(specialField.findsubkey)
|
||||
// console.log('loaded', myrec)
|
||||
if (myrec && myrec.length > 0 && !!specialField.paramtosetsubkey) {
|
||||
// @ts-ignore
|
||||
return myrec[0][specialField.paramtosetsubkey]
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
// @ts-ignore
|
||||
return userStore.my.profile[subkey]
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (keystr) { // @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user