- Aggiungere bottone Condividi il mio profilo: "riso.app/my/miouser"
This commit is contained in:
@@ -494,6 +494,7 @@
|
|||||||
text-color="blue"
|
text-color="blue"
|
||||||
type="a"
|
type="a"
|
||||||
size="md"
|
size="md"
|
||||||
|
color="yellow"
|
||||||
:class="
|
:class="
|
||||||
myel.class +
|
myel.class +
|
||||||
(editOn ? ` clEdit` : ``) +
|
(editOn ? ` clEdit` : ``) +
|
||||||
|
|||||||
@@ -176,8 +176,16 @@ export default defineComponent({
|
|||||||
$router.push(link)
|
$router.push(link)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getlinkpage() {
|
||||||
|
if (userStore.userprofile)
|
||||||
|
return self.location.host + '/my/' + userStore.userprofile.username
|
||||||
|
else
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
username,
|
username,
|
||||||
|
getlinkpage,
|
||||||
profile,
|
profile,
|
||||||
tools,
|
tools,
|
||||||
toolsext,
|
toolsext,
|
||||||
|
|||||||
@@ -208,29 +208,6 @@
|
|||||||
<div class="col-12 text-h7 text-blue text-shadow-2">
|
<div class="col-12 text-h7 text-blue text-shadow-2">
|
||||||
{{ userStore.userprofile.username }}
|
{{ userStore.userprofile.username }}
|
||||||
</div>
|
</div>
|
||||||
<q-btn
|
|
||||||
v-if="userStore.userprofile.username === myusername()"
|
|
||||||
rounded
|
|
||||||
icon="fas fa-ellipsis-h"
|
|
||||||
>
|
|
||||||
<q-menu>
|
|
||||||
<q-list style="min-width: 150px">
|
|
||||||
<q-item
|
|
||||||
clickable
|
|
||||||
v-close-popup
|
|
||||||
@click="gotoPage('/editprofile')"
|
|
||||||
>
|
|
||||||
<q-item-section avatar>
|
|
||||||
<q-icon color="primary" name="fas fa-pencil-alt" />
|
|
||||||
</q-item-section>
|
|
||||||
<q-item-section>{{
|
|
||||||
$t('shared.edit_profile')
|
|
||||||
}}</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
</q-list>
|
|
||||||
</q-menu>
|
|
||||||
</q-btn>
|
|
||||||
|
|
||||||
<div class="col-12 text-h7">
|
<div class="col-12 text-h7">
|
||||||
<span
|
<span
|
||||||
v-if="
|
v-if="
|
||||||
@@ -410,7 +387,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--HANDSHAKE-->
|
<!--HANDSHAKE-->
|
||||||
<div v-if="!isMyRecord(userStore.userprofile.username) && tools.isUserOk()">
|
<div
|
||||||
|
v-if="
|
||||||
|
!isMyRecord(userStore.userprofile.username) && tools.isUserOk()
|
||||||
|
"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="row centeritems q-pa-sm"
|
class="row centeritems q-pa-sm"
|
||||||
v-if="!userStore.IsHandShakeByMe(userStore.userprofile)"
|
v-if="!userStore.IsHandShakeByMe(userStore.userprofile)"
|
||||||
@@ -664,7 +645,13 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="userStore.userprofile && userStore.userprofile._id && tools.isUserOk()">
|
<div
|
||||||
|
v-if="
|
||||||
|
userStore.userprofile &&
|
||||||
|
userStore.userprofile._id &&
|
||||||
|
tools.isUserOk()
|
||||||
|
"
|
||||||
|
>
|
||||||
<CTitleBanner
|
<CTitleBanner
|
||||||
class=""
|
class=""
|
||||||
:title="$t('dashboard.info')"
|
:title="$t('dashboard.info')"
|
||||||
@@ -693,9 +680,7 @@
|
|||||||
v-if="!!userStore.userprofile.profile.resid_card"
|
v-if="!!userStore.userprofile.profile.resid_card"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:copy="false"
|
:copy="false"
|
||||||
:value="
|
:value="userStore.userprofile.profile.resid_card"
|
||||||
userStore.userprofile.profile.resid_card
|
|
||||||
"
|
|
||||||
label="Zona"
|
label="Zona"
|
||||||
/>
|
/>
|
||||||
<CDateTime
|
<CDateTime
|
||||||
@@ -766,20 +751,46 @@
|
|||||||
<img :src="getImgUser()" :alt="username" class="full-width" />
|
<img :src="getImgUser()" :alt="username" class="full-width" />
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|
||||||
<q-page-sticky
|
<div
|
||||||
v-if="userStore.userprofile.username === myusername()"
|
class="absolute-top-right q-mr-sm q-my-md"
|
||||||
position="top-right"
|
style="margin-top: 50px !important"
|
||||||
:offset="[18, 18]"
|
|
||||||
>
|
>
|
||||||
|
<div class="column">
|
||||||
<q-btn
|
<q-btn
|
||||||
fab
|
v-if="userStore.userprofile.username === myusername()"
|
||||||
glossy
|
flat
|
||||||
class="semi-transparent"
|
round
|
||||||
icon="fas fa-pencil-alt"
|
icon="fas fa-ellipsis-h"
|
||||||
color="primary"
|
style="z-index: 1"
|
||||||
to="/editprofile"
|
>
|
||||||
/>
|
<q-menu>
|
||||||
</q-page-sticky>
|
<q-list v-if="true" style="min-width: 200px">
|
||||||
|
<q-item
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
@click.stop="gotoPage('/editprofile')"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-icon color="blue" name="fas fa-pencil-alt" />
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>
|
||||||
|
{{ $t('shared.edit_profile') }}
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-menu>
|
||||||
|
</q-btn>
|
||||||
|
<q-btn
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
color="blue"
|
||||||
|
icon="share"
|
||||||
|
style="z-index: 1"
|
||||||
|
@click.stop="tools.copyToClip($q, getlinkpage(), true)"
|
||||||
|
>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="caricato">
|
<div v-else-if="caricato">
|
||||||
<h2>Utente {{ username }} non trovato</h2>
|
<h2>Utente {{ username }} non trovato</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user