set notif if service your province

This commit is contained in:
Surya Paolo
2023-04-13 13:46:53 +02:00
parent dc502611fa
commit 35db79b479
15 changed files with 83 additions and 75 deletions

View File

@@ -137,17 +137,23 @@ export default defineComponent({
}
function clicca(tipo: any, myset: any, title: string) {
if (myset && tipo === costanti.TIPOFAVBOOK.FAVORITE) {
userStore.setFavorite($q, t, myrec.value._id, props.table, myrec.value);
}
if (myset && tipo === costanti.TIPOFAVBOOK.BOOKMARK) {
userStore.setBookmark($q, t, myrec.value._id, props.table, myrec.value);
let mylist = null
if (tipo === costanti.TIPOFAVBOOK.FAVORITE) {
if (myset) {
userStore.setFavorite($q, t, myrec.value._id, props.table, myrec.value);
}
mylist = myrec.value.myfav
} else if (tipo === costanti.TIPOFAVBOOK.BOOKMARK) {
if (myset) {
userStore.setBookmark($q, t, myrec.value._id, props.table, myrec.value);
}
mylist = myrec.value.mybook
}
if (!myset) {
if (!myset && mylist && mylist.length > 0) {
usersList.value.show = true;
usersList.value.title = title;
usersList.value.list = myrec.value.myfav;
usersList.value.list = mylist;
}
}