Merge remote-tracking branch 'remotes/upstream/master'

This commit is contained in:
Toni Barth 2024-09-20 07:54:28 +02:00
commit c4a7543712
69 changed files with 6419 additions and 2806 deletions

View file

@ -347,6 +347,13 @@ export default {
libraryItemsAdded(libraryItems) {
console.log('libraryItems added', libraryItems)
// First items added to library
const isThisLibrary = libraryItems.some((li) => li.libraryId === this.currentLibraryId)
if (!this.shelves.length && !this.search && isThisLibrary) {
this.fetchCategories()
return
}
const recentlyAddedShelf = this.shelves.find((shelf) => shelf.id === 'recently-added')
if (!recentlyAddedShelf) return