From d79ef8fed3bf23138f4783f9044532d77de0c221 Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Wed, 30 Nov 2022 12:38:20 +0100 Subject: [PATCH] users list last reg , now can show their profile --- src/components/CMyPopupEdit/CMyPopupEdit.vue | 7 ++++--- src/store/Modules/costanti.ts | 1 + src/store/Modules/fieldsTable.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/CMyPopupEdit/CMyPopupEdit.vue b/src/components/CMyPopupEdit/CMyPopupEdit.vue index 1f6492c8..5d2372e8 100755 --- a/src/components/CMyPopupEdit/CMyPopupEdit.vue +++ b/src/components/CMyPopupEdit/CMyPopupEdit.vue @@ -84,15 +84,16 @@ {{ $t(col.extrafield) }} + @@ -176,7 +177,7 @@ color="white" text-color="blue" :icon="`img:` + userStore.getImgUserByUsername(myvalue)" - :to="col.link.replace(col.name, myvalue)" + :to="col.link ? col.link.replace(col.name, myvalue) : `/my/username`.replace(col.name, myvalue)" :label="myvalue" > diff --git a/src/store/Modules/costanti.ts b/src/store/Modules/costanti.ts index 4aff25cb..40042eac 100755 --- a/src/store/Modules/costanti.ts +++ b/src/store/Modules/costanti.ts @@ -347,6 +347,7 @@ export const costanti = { ], TipoVisu: { + NONE: 0, TESTO: 1, LINK: 2, BUTTON: 3, diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts index ab67536a..9e53bb93 100755 --- a/src/store/Modules/fieldsTable.ts +++ b/src/store/Modules/fieldsTable.ts @@ -75,7 +75,7 @@ function AddCol(params: IColGridTable) { fieldtype: (params.fieldtype === undefined) ? costanti.FieldType.string : params.fieldtype, fieldtype_real: (params.fieldtype_real === undefined) ? ((params.fieldtype === undefined) ? costanti.FieldType.string : params.fieldtype) : params.fieldtype_real, field_outtype: (params.field_outtype === undefined) ? costanti.FieldType.string : params.field_outtype, - tipovisu: (params.tipovisu === undefined) ? costanti.TipoVisu.TESTO : params.tipovisu, + tipovisu: (params.tipovisu === undefined) ? costanti.TipoVisu.NONE : params.tipovisu, link: (params.link === undefined) ? '' : params.link, askaction: (params.askaction === undefined) ? '' : params.askaction, tablesel: (params.tablesel === undefined) ? '' : params.tablesel,