Notifications
Settings Notifications User Panel
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
<div class="row items-center justify-center q-gutter-md q-ma-xs">
|
||||
|
||||
<q-list bordered class="rounded-borders">
|
||||
<q-expansion-item v-for="(rec, index) in shared_consts.typeNotifs"
|
||||
<q-expansion-item v-for="(rec, index) in shared_consts.TypeNotifs_Arr"
|
||||
:key="index"
|
||||
expand-separator
|
||||
icon="perm_identity"
|
||||
:icon="rec.icon"
|
||||
:label="t(rec.labeltrans)"
|
||||
>
|
||||
<q-card>
|
||||
@@ -30,6 +30,61 @@
|
||||
:type="costanti.FieldType.binary">
|
||||
</CMyFieldDb>
|
||||
|
||||
<div v-if="rec.value === shared_consts.TypeNotifs.TYPEDIR_BACHECA">
|
||||
<div
|
||||
v-if="tools.isBitActive(profile.notifs.find((rec) => rec.dir === shared_consts.TypeNotifs.TYPEDIR_BACHECA).value, shared_consts.UsersNotif.NEW_ADV_SECTOR)">
|
||||
<CMyFieldDb
|
||||
:title="$t('sectors.sector_general')"
|
||||
table="users"
|
||||
mykey="profile"
|
||||
mysubkey="notif_sectors"
|
||||
:jointable="toolsext.TABSECTORS"
|
||||
:type="costanti.FieldType.multiselect">
|
||||
</CMyFieldDb>
|
||||
<CMyFieldDb
|
||||
:title="$t('sectors.sector_goods')"
|
||||
table="users"
|
||||
mykey="profile"
|
||||
mysubkey="notif_sector_goods"
|
||||
:jointable="toolsext.TABSECTORGOODS"
|
||||
:type="costanti.FieldType.multiselect">
|
||||
</CMyFieldDb>
|
||||
</div>
|
||||
<div
|
||||
v-if="tools.isBitActive(profile.notifs.find((rec) => rec.dir === shared_consts.TypeNotifs.TYPEDIR_BACHECA).value, shared_consts.UsersNotif.NEW_ADV_REGION)">
|
||||
<CMyFieldDb
|
||||
:title="$t('notifs.select_regions')"
|
||||
table="users"
|
||||
mykey="profile"
|
||||
mysubkey="notif_regions"
|
||||
:jointable="toolsext.TABREGIONS"
|
||||
:type="costanti.FieldType.multiselect">
|
||||
</CMyFieldDb>
|
||||
</div>
|
||||
<div
|
||||
v-if="tools.isBitActive(profile.notifs.find((rec) => rec.dir === shared_consts.TypeNotifs.TYPEDIR_BACHECA).value, shared_consts.UsersNotif.NEW_ADV_PROVINCE)">
|
||||
<CMyFieldDb
|
||||
:title="$t('notifs.select_provinces')"
|
||||
table="users"
|
||||
mykey="profile"
|
||||
mysubkey="notif_provinces"
|
||||
:jointable="toolsext.TABPROVINCE"
|
||||
:type="costanti.FieldType.multiselect">
|
||||
</CMyFieldDb>
|
||||
</div>
|
||||
|
||||
<!--<CMyFieldDb
|
||||
:title="$t('notification.cities')"
|
||||
table="users"
|
||||
mykey="profile"
|
||||
mysubkey="notif_cities"
|
||||
:jointable="toolsext.TABCITIES"
|
||||
:type="costanti.FieldType.multiselect_by_server">
|
||||
</CMyFieldDb>-->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-expansion-item>
|
||||
|
||||
Reference in New Issue
Block a user