diff --git a/frontend/src/__generated__/models/CollectionSchema.ts b/frontend/src/__generated__/models/CollectionSchema.ts index f6567ff5f..b0463c835 100644 --- a/frontend/src/__generated__/models/CollectionSchema.ts +++ b/frontend/src/__generated__/models/CollectionSchema.ts @@ -21,6 +21,5 @@ export type CollectionSchema = { url_cover: (string | null); user_id: number; owner_username: string; - owned_by_current_user: boolean; }; diff --git a/frontend/src/__generated__/models/SmartCollectionSchema.ts b/frontend/src/__generated__/models/SmartCollectionSchema.ts index 268b7b9cd..6f6c4b552 100644 --- a/frontend/src/__generated__/models/SmartCollectionSchema.ts +++ b/frontend/src/__generated__/models/SmartCollectionSchema.ts @@ -22,6 +22,5 @@ export type SmartCollectionSchema = { filter_summary: string; user_id: number; owner_username: string; - owned_by_current_user: boolean; }; diff --git a/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue b/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue index ab51e4107..877e30246 100644 --- a/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue +++ b/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue @@ -27,9 +27,7 @@ async function fetchRoms() { }); romsStore - .fetchRoms({ - concat: false, - }) + .fetchRoms(false) .then(() => { emitter?.emit("showLoadingDialog", { loading: false, diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue index 37166c3e1..d0ffeac80 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue @@ -86,9 +86,7 @@ const emitter = inject>("emitter"); const onFilterChange = debounce( () => { romsStore.resetPagination(); - romsStore.fetchRoms({ - concat: false, - }); + romsStore.fetchRoms(false); const url = new URL(window.location.href); // Update URL with filters diff --git a/frontend/src/components/Settings/LibraryManagement/Config/MissingGames.vue b/frontend/src/components/Settings/LibraryManagement/Config/MissingGames.vue index d8fe91fef..cb1be5196 100644 --- a/frontend/src/components/Settings/LibraryManagement/Config/MissingGames.vue +++ b/frontend/src/components/Settings/LibraryManagement/Config/MissingGames.vue @@ -43,9 +43,7 @@ const onFilterChange = debounce( () => { romsStore.resetPagination(); galleryFilterStore.setFilterMissing(true); - romsStore.fetchRoms({ - concat: false, - }); + romsStore.fetchRoms(false); const url = new URL(window.location.href); // Update URL with filters @@ -73,7 +71,7 @@ async function fetchRoms() { galleryFilterStore.setFilterMissing(true); romsStore - .fetchRoms({}) + .fetchRoms() .catch((error) => { console.error("Error fetching missing games:", error); emitter?.emit("snackbarShow", { @@ -93,7 +91,7 @@ function cleanupAll() { romsStore.setLimit(10000); galleryFilterStore.setFilterMissing(true); romsStore - .fetchRoms({}) + .fetchRoms() .then(() => { emitter?.emit("showLoadingDialog", { loading: false, diff --git a/frontend/src/components/common/Game/VirtualTable.vue b/frontend/src/components/common/Game/VirtualTable.vue index 460b4bdab..2cb68b0ad 100644 --- a/frontend/src/components/common/Game/VirtualTable.vue +++ b/frontend/src/components/common/Game/VirtualTable.vue @@ -136,7 +136,7 @@ function updateOptions({ sortBy }: { sortBy: SortBy }) { romsStore.resetPagination(); romsStore.setOrderBy(key); romsStore.setOrderDir(order); - romsStore.fetchRoms({}); + romsStore.fetchRoms(); } diff --git a/frontend/src/console/views/GamesList.vue b/frontend/src/console/views/GamesList.vue index 10783f4f2..5e741391f 100644 --- a/frontend/src/console/views/GamesList.vue +++ b/frontend/src/console/views/GamesList.vue @@ -318,9 +318,7 @@ async function fetchRoms() { romsStore.setOrderDir("asc"); romsStore.resetPagination(); - const fetchedRoms = await romsStore.fetchRoms({ - concat: false, - }); + const fetchedRoms = await romsStore.fetchRoms(false); if (selectedIndex.value >= fetchedRoms.length) selectedIndex.value = 0; await nextTick(); diff --git a/frontend/src/stores/roms.ts b/frontend/src/stores/roms.ts index 369726e6d..a5f1bf355 100644 --- a/frontend/src/stores/roms.ts +++ b/frontend/src/stores/roms.ts @@ -193,11 +193,7 @@ export default defineStore("roms", { galleryFilter.setFilterPlayerCounts(filter_values.player_counts); } }, - async fetchRoms({ - concat = true, - }: { - concat?: boolean; - }): Promise { + async fetchRoms(concat = true): Promise { if (this.fetchingRoms) return Promise.resolve([]); this.fetchingRoms = true; diff --git a/frontend/src/views/Gallery/Collection/BaseCollection.vue b/frontend/src/views/Gallery/Collection/BaseCollection.vue index d2ab345d6..f13a49b2d 100644 --- a/frontend/src/views/Gallery/Collection/BaseCollection.vue +++ b/frontend/src/views/Gallery/Collection/BaseCollection.vue @@ -53,7 +53,7 @@ async function fetchRoms() { }); romsStore - .fetchRoms({}) + .fetchRoms() .then(() => { emitter?.emit("showLoadingDialog", { loading: false, diff --git a/frontend/src/views/Gallery/Platform.vue b/frontend/src/views/Gallery/Platform.vue index 6dd6c7436..03aac805c 100644 --- a/frontend/src/views/Gallery/Platform.vue +++ b/frontend/src/views/Gallery/Platform.vue @@ -48,7 +48,7 @@ async function fetchRoms() { }); romsStore - .fetchRoms({}) + .fetchRoms() .then(() => { emitter?.emit("showLoadingDialog", { loading: false, diff --git a/frontend/src/views/Gallery/Search.vue b/frontend/src/views/Gallery/Search.vue index 50a45f8e6..e1c79aa52 100644 --- a/frontend/src/views/Gallery/Search.vue +++ b/frontend/src/views/Gallery/Search.vue @@ -99,7 +99,7 @@ function onGameTouchEnd() { } function fetchRoms() { - romsStore.fetchRoms({}).catch((error) => { + romsStore.fetchRoms().catch((error) => { emitter?.emit("snackbarShow", { msg: `Couldn't fetch roms: ${error}`, icon: "mdi-close-circle",