- aggiunto anche nei beni, servizi e ospitalità la possibilità di aggiungerli come "Gruppo"
This commit is contained in:
@@ -7,6 +7,7 @@ import { CCopyBtn } from '@/components/CCopyBtn'
|
||||
import { CSkill } from '@/components/CSkill'
|
||||
import { CDateTime } from '@/components/CDateTime'
|
||||
import { CMyGroup } from '@/components/CMyGroup'
|
||||
import { CUserNote } from '@/components/CUserNote'
|
||||
import { CMyCircuit } from '@/components/CMyCircuit'
|
||||
import { CNotifAtTop } from '@src/components/CNotifAtTop'
|
||||
import { CMyActivities } from '@src/components/CMyActivities'
|
||||
@@ -38,7 +39,7 @@ export default defineComponent({
|
||||
components: {
|
||||
CProfile, CTitleBanner, CMyFieldDb, CSkill, CDateTime, CCopyBtn, CUserNonVerif, CMyFieldRec, CMyUser,
|
||||
CMyGroup, CLabel, CMyCircuit, CSendCoins, CNotifAtTop,
|
||||
CCheckIfIsLogged, CTimeAgo, CContactUser, CMyActivities,
|
||||
CCheckIfIsLogged, CTimeAgo, CContactUser, CMyActivities, CUserNote,
|
||||
},
|
||||
props: {},
|
||||
setup() {
|
||||
@@ -54,6 +55,7 @@ export default defineComponent({
|
||||
|
||||
const animation = ref('fade')
|
||||
const spinner_visible = ref(false)
|
||||
const shownote = ref(false)
|
||||
const usersList = ref({ show: false, title: '', list: [] })
|
||||
|
||||
const username = computed(() => $route.params.username ? $route.params.username.toString() : userStore.my.username)
|
||||
@@ -71,6 +73,7 @@ export default defineComponent({
|
||||
const showinghand = ref(false)
|
||||
|
||||
const actualcard = ref('mygoods')
|
||||
const mostranota = ref(false)
|
||||
|
||||
const notifStore = useNotifStore()
|
||||
|
||||
@@ -196,6 +199,11 @@ export default defineComponent({
|
||||
spinner_visible.value = false
|
||||
}
|
||||
|
||||
function salvaUserProv(userprofile: IUserFields) {
|
||||
if (userprofile)
|
||||
userStore.userprofile = userprofile
|
||||
}
|
||||
|
||||
return {
|
||||
username,
|
||||
getlinkpage,
|
||||
@@ -238,6 +246,9 @@ export default defineComponent({
|
||||
spinner_visible,
|
||||
showed,
|
||||
tab,
|
||||
shownote,
|
||||
mostranota,
|
||||
salvaUserProv,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -118,6 +118,17 @@
|
||||
>
|
||||
{{ userStore.userprofile.profile.biografia }}
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
userStore.userprofile &&
|
||||
userStore.userprofile.profile.note &&
|
||||
(userStore.isFacilitatore || userStore.isAdmin)
|
||||
"
|
||||
class="col-12 text-h8 q-mt-sm"
|
||||
>
|
||||
Note del Facilitatore:<br />
|
||||
{{ userStore.userprofile.profile.note }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
@@ -210,6 +221,33 @@
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="
|
||||
userStore.userprofile &&
|
||||
userStore.userprofile.profile.note &&
|
||||
(userStore.isFacilitatore || userStore.isAdmin)
|
||||
"
|
||||
class="col-12 text-h8 q-mt-sm"
|
||||
>
|
||||
<div v-if="!mostranota" class="text-center">
|
||||
<q-btn
|
||||
label="Note del Facilitatore"
|
||||
@click="mostranota = true"
|
||||
color="green"
|
||||
>
|
||||
<q-badge color="red" floating>1</q-badge>
|
||||
</q-btn>
|
||||
</div>
|
||||
<div v-else>
|
||||
<strong>Note del Facilitatore</strong>:<br />
|
||||
<q-banner rounded class="bg-green-8 text-white">
|
||||
<div class="text-h7 text-center">
|
||||
{{ userStore.userprofile.profile.note }}
|
||||
</div>
|
||||
</q-banner>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<CContactUser
|
||||
:myuser="userStore.userprofile"
|
||||
:showBtnActivities="false"
|
||||
@@ -725,17 +763,13 @@
|
||||
</q-tab-panels>
|
||||
</div>
|
||||
</div>
|
||||
<q-page-sticky
|
||||
position="top-right"
|
||||
:offset="[18, 18]"
|
||||
class="z-top"
|
||||
>
|
||||
<q-page-sticky position="top-right" :offset="[18, 18]" class="z-top">
|
||||
<q-fab
|
||||
icon="fas fa-ellipsis-v"
|
||||
color="accent"
|
||||
external-label
|
||||
vertical-actions-align="right"
|
||||
direction="down"
|
||||
direction="down"
|
||||
>
|
||||
<q-fab-action
|
||||
@click="tools.copyToClip($q, getlinkpage(), true)"
|
||||
@@ -752,6 +786,14 @@
|
||||
:label="$t('shared.edit_profile')"
|
||||
@click.stop="gotoPage('/editprofile')"
|
||||
/>
|
||||
<q-fab-action
|
||||
label-position="right"
|
||||
v-if="userStore.isFacilitatore || userStore.isAdmin"
|
||||
color="red"
|
||||
icon="fas fa-pencil-alt"
|
||||
:label="$t('profile.aggiungi_note')"
|
||||
@click="shownote = !shownote"
|
||||
/>
|
||||
</q-fab>
|
||||
</q-page-sticky>
|
||||
<q-dialog v-model="showPic" full-height full-width>
|
||||
@@ -828,6 +870,14 @@
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
<div v-if="shownote">
|
||||
<CUserNote
|
||||
:username="username"
|
||||
:userprofile_param="userStore.userprofile"
|
||||
@closenote="shownote = false"
|
||||
@save="salvaUserProv"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./myprofile.ts">
|
||||
|
||||
Reference in New Issue
Block a user