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 class="q-gutter-sm q-pa-sm q-pb-md">
<div <div
v-if="myuser && myuser.date_reg" 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 <CTitleBanner
v-if="site.confpages.showCompetenze" v-if="site.confpages.showCompetenze"
@@ -41,14 +41,7 @@
:canopen="true" :canopen="true"
> >
<div <div
class=" class="fit column no-wrap justify-evenly items-center content-start"
fit
column
no-wrap
justify-evenly
items-center
content-start
"
> >
<div v-if="site.confpages.showNameSurname"> <div v-if="site.confpages.showNameSurname">
<div class="text-h6"> <div class="text-h6">
@@ -62,35 +55,9 @@
{{ myuser.username }} {{ myuser.username }}
</div> </div>
</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> <div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
<q-tab-panel <div class="text-h6">{{card.title}}</div>
v-for="(card, ind) of mycards"
:key="ind"
:name="card.table"
>
<div v-if="card.table === 'mygroups'"> <div v-if="card.table === 'mygroups'">
<q-list> <q-list>
<span <span
@@ -122,14 +89,13 @@
</div> </div>
<div v-else> <div v-else>
<CSkill <CSkill
v-if="card.table === actualcard"
:table="card.table" :table="card.table"
:filtercustom="filtroutente" :filtercustom="filtroutente"
:butt_modif_new="isMyRecord(myuser.username)" :butt_modif_new="isMyRecord(myuser.username)"
visuinpage="true"
/> />
</div> </div>
</q-tab-panel> </div>
</q-tab-panels>
</CTitleBanner> </CTitleBanner>
</div> </div>
</div> </div>

View File

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