fix: ordinamento membri (namecomplete (concat: name, surname, username)

This commit is contained in:
Surya Paolo
2023-04-12 15:37:47 +02:00
parent cfed7552b1
commit fb68df418d
28 changed files with 136 additions and 103 deletions

View File

@@ -136,15 +136,15 @@ export default defineComponent({
return null
}
function clicca(tipo: any, set: any, title: string) {
if (set && myrec.value.username !== userStore.my.username && tipo === costanti.TIPOFAVBOOK.FAVORITE) {
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 (set && myrec.value.username !== userStore.my.username && tipo === costanti.TIPOFAVBOOK.BOOKMARK) {
if (myset && tipo === costanti.TIPOFAVBOOK.BOOKMARK) {
userStore.setBookmark($q, t, myrec.value._id, props.table, myrec.value);
}
if (!set) {
if (!myset) {
usersList.value.show = true;
usersList.value.title = title;
usersList.value.list = myrec.value.myfav;