- migliorata grafica statistiche valori
- corretto pagina profilo
This commit is contained in:
@@ -187,130 +187,132 @@
|
||||
v-if="visu === costanti.USER_CIRCUITS && tools.isUserOk()"
|
||||
>
|
||||
<q-item-label>
|
||||
<div v-if="false">
|
||||
<q-btn
|
||||
rounded
|
||||
:icon="
|
||||
userStore.IsMyCircuitByName(circuit.name)
|
||||
? `fas fa-ellipsis-h`
|
||||
: `fas fa-user`
|
||||
"
|
||||
>
|
||||
<q-menu>
|
||||
<q-list
|
||||
v-if="
|
||||
!userStore.IsMyCircuitByName(circuit.name) &&
|
||||
!userStore.IsAskedCircuitByName(circuit.name) &&
|
||||
!userStore.IsRefusedCircuitByName(circuit.name)
|
||||
"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REQ,
|
||||
myusername(),
|
||||
true,
|
||||
circuitname
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
circuit.askManagerToEnter ? t('circuit.ask') : t('circuit.enter')
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list
|
||||
v-else-if="
|
||||
!userStore.IsMyCircuitByName(circuit.name) &&
|
||||
userStore.IsAskedCircuitByName(circuit.name) &&
|
||||
!userStore.IsRefusedCircuitByName(circuit.name)
|
||||
"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REQ,
|
||||
myusername(),
|
||||
false,
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>
|
||||
{{ t('shared.refuse_ask') }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REQ,
|
||||
myusername(),
|
||||
false,
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>
|
||||
{{ t('shared.cancel_ask') }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list
|
||||
v-else-if="
|
||||
userStore.IsMyCircuitByName(circuit.name) && (saldo === 0 || !saldo)
|
||||
"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REMOVE_FROM_MYLIST,
|
||||
myusername(),
|
||||
'',
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>{{ t('circuit.exit') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list
|
||||
v-if="userStore.isAdmin"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.DELETE,
|
||||
myusername(),
|
||||
'',
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>{{ t('circuit.delete') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
</div>
|
||||
<q-btn
|
||||
rounded
|
||||
:icon="
|
||||
userStore.IsMyCircuitByName(circuit.name)
|
||||
? `fas fa-ellipsis-h`
|
||||
: `fas fa-user`
|
||||
"
|
||||
>
|
||||
<q-menu>
|
||||
<q-list
|
||||
v-if="
|
||||
!userStore.IsMyCircuitByName(circuit.name) &&
|
||||
!userStore.IsAskedCircuitByName(circuit.name) &&
|
||||
!userStore.IsRefusedCircuitByName(circuit.name)
|
||||
"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REQ,
|
||||
myusername(),
|
||||
true,
|
||||
circuitname
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
circuit.askManagerToEnter ? t('circuit.ask') : t('circuit.enter')
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list
|
||||
v-else-if="
|
||||
!userStore.IsMyCircuitByName(circuit.name) &&
|
||||
userStore.IsAskedCircuitByName(circuit.name) &&
|
||||
!userStore.IsRefusedCircuitByName(circuit.name)
|
||||
"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REQ,
|
||||
myusername(),
|
||||
false,
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>
|
||||
{{ t('shared.refuse_ask') }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REQ,
|
||||
myusername(),
|
||||
false,
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>
|
||||
{{ t('shared.cancel_ask') }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list
|
||||
v-else-if="
|
||||
userStore.IsMyCircuitByName(circuit.name) && (saldo === 0 || !saldo)
|
||||
"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.REMOVE_FROM_MYLIST,
|
||||
myusername(),
|
||||
'',
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>{{ t('circuit.exit') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list
|
||||
v-if="userStore.isAdmin"
|
||||
style="min-width: 200px"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.setCmd(
|
||||
$q,
|
||||
shared_consts.CIRCUITCMD.DELETE,
|
||||
myusername(),
|
||||
'',
|
||||
circuit.name
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section>{{ t('circuit.delete') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
<q-btn
|
||||
v-if="fidoConcessoUtente !== ''"
|
||||
v-if="fidoConcessoUtente !== '' && false"
|
||||
icon="fas fa-house-user"
|
||||
class="q-ml-sm"
|
||||
:color="Number(fidoConcessoUtente) > 0 ? 'primary' : 'grey'"
|
||||
|
||||
Reference in New Issue
Block a user