Update FolderComponent to toggle favs

This commit is contained in:
Vincent BRIDIER 2022-04-01 11:53:14 +02:00
parent 26d540a28c
commit 710b8a4ab0
No known key found for this signature in database
GPG key ID: 8571BFA20420D512

View file

@ -133,10 +133,8 @@
}
});
this.$nextTick(() => {
self.oFolders.forEach(item => {
if (item.favoris === false) {
self.toggle(item)
}
self.folders.forEach(item => {
self.toggle(item);
})
})
},
@ -241,11 +239,11 @@
}
},
toggle(item) {
// const self = this
// $("[parent-id='"+ item.id +"']").toggle(300, () => {
// // * Force rerender classes on folders
// self.$forceUpdate()
// })
const self = this
$("[parent-id='"+ item.id +"']").toggle(300, () => {
// * Force rerender classes on folders
self.$forceUpdate()
})
}
}
}