Filtra Ricerca...
This commit is contained in:
@@ -15,7 +15,7 @@ import { useCircuitStore } from '@store/CircuitStore'
|
||||
export default defineComponent({
|
||||
name: 'CMyUser',
|
||||
components: { CSendCoins, CSaldo, CUserInfoAccount },
|
||||
emits: ['setCmd'],
|
||||
emits: ['setCmd', 'showInnerDialog'],
|
||||
props: {
|
||||
mycontact: {
|
||||
type: Object as PropType<IUserFields | null>,
|
||||
@@ -111,6 +111,11 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function showsendCoin(value: boolean) {
|
||||
showsendCoinTo.value = value
|
||||
emit('showInnerDialog', showsendCoinTo.value)
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -125,6 +130,7 @@ export default defineComponent({
|
||||
circuit,
|
||||
showAccountInfo,
|
||||
showsendCoinTo,
|
||||
showsendCoin,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -391,6 +391,17 @@
|
||||
<q-menu>
|
||||
<q-list v-if="true" style="min-width: 150px">
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
dense
|
||||
@click="naviga(`/my/` + contact.username)"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="primary" name="fas fa-user" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{ $t('shared.profile') }}</q-item-section>
|
||||
</q-item>
|
||||
<!--<q-item
|
||||
v-if="
|
||||
userStore.showButtonSendCoin(contact) &&
|
||||
(contact.username !== userStore.my.username ||
|
||||
@@ -400,13 +411,13 @@
|
||||
clickable
|
||||
v-close-popup
|
||||
dense
|
||||
@click="showsendCoinTo = true"
|
||||
@click="showsendCoin(true)"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="positive" name="fas fa-coins" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-item>-->
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@@ -776,7 +787,7 @@
|
||||
>
|
||||
<q-menu>
|
||||
<q-list style="min-width: 200px">
|
||||
<q-item
|
||||
<!--<q-item
|
||||
v-if="
|
||||
userStore.showButtonSendCoin(contact) &&
|
||||
(contact.username !== userStore.my.username ||
|
||||
@@ -786,13 +797,25 @@
|
||||
clickable
|
||||
v-close-popup
|
||||
dense
|
||||
@click="showsendCoinTo = true"
|
||||
@click="showsendCoin(true)"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="positive" name="fas fa-coins" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
||||
</q-item>-->
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
dense
|
||||
@click="naviga(`/my/` + contact.username)"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="primary" name="fas fa-user" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{ $t('shared.profile') }}</q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item
|
||||
v-if="
|
||||
costanti.ENABLE_FRIENDS &&
|
||||
@@ -979,12 +1002,13 @@
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</div>
|
||||
<div v-if="showsendCoinTo && contact">
|
||||
<div v-if="contact">
|
||||
<CSendCoins
|
||||
v-if="showsendCoinTo"
|
||||
:showprop="showsendCoinTo"
|
||||
:to_user="contact"
|
||||
:circuitname="circuitname"
|
||||
@close="showsendCoinTo = false"
|
||||
@close="showsendCoin(false)"
|
||||
>
|
||||
</CSendCoins>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user