fix activities

This commit is contained in:
Surya Paolo
2022-12-03 03:48:53 +01:00
parent 5af082ac29
commit 0498ba891a
2 changed files with 41 additions and 75 deletions

View File

@@ -29,7 +29,7 @@
<div class="q-gutter-sm q-pa-sm q-pb-md">
<div
v-if="myuser && myuser.date_reg"
class="fit column no-wrap justify-evenly items-center content-start"
class="row wrap justify-evenly items-center content-start"
>
<CTitleBanner
v-if="site.confpages.showCompetenze"
@@ -41,14 +41,7 @@
:canopen="true"
>
<div
class="
fit
column
no-wrap
justify-evenly
items-center
content-start
"
class="fit column no-wrap justify-evenly items-center content-start"
>
<div v-if="site.confpages.showNameSurname">
<div class="text-h6">
@@ -62,35 +55,9 @@
{{ myuser.username }}
</div>
</div>
<q-select
v-model="actualcard"
:options="optionsMainCards"
emit-value
borderless
map-options
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
>
<template v-slot:option="scope">
<q-item v-bind="scope.itemProps">
<q-item-section avatar>
<q-icon :name="scope.opt.icon" />
</q-item-section>
<q-item-section>
<q-item-label>{{ scope.opt.label }}</q-item-label>
<!--<q-item-label caption>{{
scope.opt.description
}}</q-item-label>-->
</q-item-section>
</q-item>
</template>
</q-select>
<q-tab-panels v-model="actualcard" animated>
<q-tab-panel
v-for="(card, ind) of mycards"
:key="ind"
:name="card.table"
>
<div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
<div class="text-h6">{{card.title}}</div>
<div v-if="card.table === 'mygroups'">
<q-list>
<span
@@ -122,14 +89,13 @@
</div>
<div v-else>
<CSkill
v-if="card.table === actualcard"
:table="card.table"
:filtercustom="filtroutente"
:butt_modif_new="isMyRecord(myuser.username)"
visuinpage="true"
/>
</div>
</q-tab-panel>
</q-tab-panels>
</div>
</CTitleBanner>
</div>
</div>

View File

@@ -160,7 +160,7 @@
size="md"
color="orange"
:label="$t('profile.myactivities')"
:to="`/skills/` + myusername()"
:to="`/skills/` + myuser.username"
>
</q-btn>