Aggiungere i propri annunci sul Profilo
This commit is contained in:
@@ -110,6 +110,8 @@ export const shared_consts = {
|
||||
TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'mygoods'],
|
||||
TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'mygoods', 'users'],
|
||||
|
||||
|
||||
|
||||
TABLES_VISU_IMG: ['myskills', 'mybachecas', 'mygoods', 'mygroups'],
|
||||
TABLES_DIRECTORY_A_PARTE: ['mygroups'],
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
:defaultnewrec="getdefaultnewrec"
|
||||
:filtercustom="filtercustom"
|
||||
v-bind="$attrs"
|
||||
:extraparams="extraparams()">
|
||||
:extraparams="extraparams">
|
||||
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
|
||||
@@ -19,6 +19,7 @@ export const costanti = {
|
||||
icon: 'fas fa-tshirt',
|
||||
color: 'indigo',
|
||||
hint: '',
|
||||
table: 'mygoods',
|
||||
},
|
||||
{
|
||||
title: 'Servizi',
|
||||
@@ -26,6 +27,7 @@ export const costanti = {
|
||||
icon: 'fas fa-house-user',
|
||||
color: 'red',
|
||||
hint: '',
|
||||
table: 'myskills',
|
||||
},
|
||||
{
|
||||
title: 'Mobilità',
|
||||
@@ -51,6 +53,7 @@ export const costanti = {
|
||||
color: 'green',
|
||||
hint: 'eventi, last minute, offerte di lavoro',
|
||||
disable: false,
|
||||
table: 'mybachecas',
|
||||
},
|
||||
{
|
||||
title: 'Luoghi',
|
||||
|
||||
@@ -44,6 +44,13 @@ export default defineComponent({
|
||||
|
||||
const myuser = ref(<IUserFields>{})
|
||||
|
||||
const actualcard = ref('mygoods')
|
||||
|
||||
const mycards = computed(() => {
|
||||
return costanti.MAINCARDS.filter((rec: any) => rec.table)
|
||||
})
|
||||
|
||||
|
||||
function profile() {
|
||||
return userStore.my.profile
|
||||
}
|
||||
@@ -124,6 +131,8 @@ export default defineComponent({
|
||||
isMyRecord,
|
||||
getRefLink,
|
||||
fieldsTable,
|
||||
mycards,
|
||||
actualcard,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -153,27 +153,30 @@
|
||||
</div>
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
<CTitleBanner
|
||||
class="" title="Competenze e Talenti" bgcolor="bg-positive" clcolor="text-white"
|
||||
myclass="myshad" :canopen="true">
|
||||
|
||||
<q-tabs v-model="tabgrp" class="text-blue">
|
||||
<q-tab label="Beni" name="goods" icon="fas fa-info"></q-tab>
|
||||
<q-tabs v-model="actualcard" class="text-blue">
|
||||
<q-tab v-for="(card, ind) of mycards" :key="ind" :name="card.table" :label="card.title">
|
||||
|
||||
</q-tab>
|
||||
</q-tabs>
|
||||
<CSkill
|
||||
:table="table"
|
||||
:visuinpage="false"
|
||||
:filtercustom="filtroutente"
|
||||
:butt_modif_new="isMyRecord(myuser.username)"
|
||||
|
||||
>
|
||||
|
||||
</CSkill>
|
||||
<q-tab-panels v-model="actualcard" animated>
|
||||
<q-tab-panel v-for="(card, ind) of mycards" :key="ind" :name="card.table">
|
||||
|
||||
<CSkill
|
||||
:table="card.table"
|
||||
:filtercustom="filtroutente"
|
||||
:butt_modif_new="isMyRecord(myuser.username)"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
|
||||
</CTitleBanner>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<div v-if="myuser._id && (userStore.IsMyFriendByUsername(myuser.username) || isMyRecord(myuser.username))">
|
||||
|
||||
Reference in New Issue
Block a user