- aggiornati anche i ContribTypes che appaiono sulla card degli annunci
This commit is contained in:
@@ -230,7 +230,11 @@
|
||||
|
||||
<!-- Preferences (solo per MYHOSPS) -->
|
||||
<q-item-label
|
||||
v-if="table === shared_consts.TABLES_MYHOSPS && myrec.preferences && myrec.preferences.length > 0"
|
||||
v-if="
|
||||
table === shared_consts.TABLES_MYHOSPS &&
|
||||
myrec.preferences &&
|
||||
myrec.preferences.length > 0
|
||||
"
|
||||
class="preferences-row"
|
||||
>
|
||||
<div class="preferences-icons-container">
|
||||
@@ -311,17 +315,35 @@
|
||||
{{ t('event.attend') }}
|
||||
</q-item-label>
|
||||
|
||||
<!-- Città -->
|
||||
<q-item-label
|
||||
lines="2"
|
||||
class="cities-text"
|
||||
>
|
||||
<span
|
||||
v-for="(rec, ind) of myrec.mycities"
|
||||
:key="ind"
|
||||
<!-- Città e Contrib Type -->
|
||||
<q-item-label class="cities-contrib-row">
|
||||
<div
|
||||
v-if="myrec.idContribType && myrec.idContribType.length > 0"
|
||||
class="preferences-icons-container"
|
||||
>
|
||||
<span v-if="ind > 0">, </span>{{ rec.comune }} ({{ rec.prov }})
|
||||
</span>
|
||||
<q-avatar
|
||||
v-for="(reccontr, index) in myrec.idContribType"
|
||||
:key="index"
|
||||
size="32px"
|
||||
:style="`background-color: ${calendarStore.getColByContribType(reccontr) || 'grey'}; opacity: 0.9; cursor: pointer;`"
|
||||
class="preference-icon-avatar"
|
||||
>
|
||||
<q-icon
|
||||
:name="calendarStore.getIconByContribType(reccontr) || ''"
|
||||
size="18px"
|
||||
color="white"
|
||||
/>
|
||||
<q-tooltip>{{ calendarStore.getContribtypeById(reccontr) }}</q-tooltip>
|
||||
</q-avatar>
|
||||
</div>
|
||||
<div class="cities-text">
|
||||
<span
|
||||
v-for="(rec, ind) of myrec.mycities"
|
||||
:key="ind"
|
||||
>
|
||||
<span v-if="ind > 0">, </span>{{ rec.comune }} ({{ rec.prov }})
|
||||
</span>
|
||||
</div>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
|
||||
@@ -405,7 +427,6 @@
|
||||
|
||||
<q-card-section class="dialog-content">
|
||||
<div class="categories-grid">
|
||||
|
||||
<q-chip
|
||||
v-for="(rec, ind) of myrec.preferences"
|
||||
:key="ind"
|
||||
|
||||
Reference in New Issue
Block a user