diff --git a/frontend/src/RomM.vue b/frontend/src/RomM.vue
index ce9f39188..7617a6f89 100644
--- a/frontend/src/RomM.vue
+++ b/frontend/src/RomM.vue
@@ -1,5 +1,6 @@
-
-
-
+
diff --git a/frontend/src/components/Gallery/AppBar/Collection/Base.vue b/frontend/src/components/Gallery/AppBar/Collection/Base.vue
index d57b215b9..42332f1b3 100644
--- a/frontend/src/components/Gallery/AppBar/Collection/Base.vue
+++ b/frontend/src/components/Gallery/AppBar/Collection/Base.vue
@@ -21,13 +21,13 @@ const { currentCollection } = storeToRefs(romsStore);
diff --git a/frontend/src/components/common/Navigation/CollectionsBtn.vue b/frontend/src/components/common/Navigation/CollectionsBtn.vue
index db7c04c3f..4ae12f37a 100644
--- a/frontend/src/components/common/Navigation/CollectionsBtn.vue
+++ b/frontend/src/components/common/Navigation/CollectionsBtn.vue
@@ -18,11 +18,11 @@ const { activeCollectionsDrawer } = storeToRefs(navigationStore);
mdi-bookmark-box-multiple
diff --git a/frontend/src/components/common/Navigation/PlatformsBtn.vue b/frontend/src/components/common/Navigation/PlatformsBtn.vue
index b625ef503..26837486e 100644
--- a/frontend/src/components/common/Navigation/PlatformsBtn.vue
+++ b/frontend/src/components/common/Navigation/PlatformsBtn.vue
@@ -18,7 +18,7 @@ const { activePlatformsDrawer } = storeToRefs(navigationStore);
:block="block"
variant="flat"
rounded="0"
- :color="activePlatformsDrawer ? 'toplayer' : ''"
+ :color="activeCollectionsDrawer ? 'surface' : 'background'"
icon
@click="navigationStore.switchActivePlatformsDrawer"
>
diff --git a/frontend/src/components/common/Navigation/ScanBtn.vue b/frontend/src/components/common/Navigation/ScanBtn.vue
index 3a7fae0b7..94ba52703 100644
--- a/frontend/src/components/common/Navigation/ScanBtn.vue
+++ b/frontend/src/components/common/Navigation/ScanBtn.vue
@@ -109,6 +109,7 @@ onBeforeUnmount(() => {
variant="flat"
rounded="0"
icon
+ color="background"
@click="navigationStore.goScan"
>
>("emitter");
-
+
mdi-magnify
diff --git a/frontend/src/components/common/Navigation/UploadBtn.vue b/frontend/src/components/common/Navigation/UploadBtn.vue
index c8ae3d383..222865f2a 100644
--- a/frontend/src/components/common/Navigation/UploadBtn.vue
+++ b/frontend/src/components/common/Navigation/UploadBtn.vue
@@ -14,6 +14,7 @@ const auth = storeAuth();
icon="mdi-upload"
variant="flat"
rounded="0"
+ color="background"
@click="emitter?.emit('showUploadRomDialog', null)"
/>
diff --git a/frontend/src/layouts/Main.vue b/frontend/src/layouts/Main.vue
index ef6c85400..83d631506 100644
--- a/frontend/src/layouts/Main.vue
+++ b/frontend/src/layouts/Main.vue
@@ -5,7 +5,6 @@ import RemoveRomsFromCollectionDialog from "@/components/common/Collection/Dialo
import DeleteRomDialog from "@/components/common/Game/Dialog/DeleteRom.vue";
import EditRomDialog from "@/components/common/Game/Dialog/EditRom.vue";
import MatchRomDialog from "@/components/common/Game/Dialog/MatchRom.vue";
-import MainAppBar from "@/components/common/Navigation/MainAppBar.vue";
import NewVersionDialog from "@/components/common/NewVersionDialog.vue";
import Notification from "@/components/common/Notifications/Notification.vue";
import UploadProgress from "@/components/common/Notifications/UploadProgress.vue";
@@ -59,7 +58,6 @@ onBeforeMount(async () => {
-
diff --git a/frontend/src/services/api/rom.ts b/frontend/src/services/api/rom.ts
index 4347a755b..a08724c37 100644
--- a/frontend/src/services/api/rom.ts
+++ b/frontend/src/services/api/rom.ts
@@ -11,7 +11,6 @@ import { getDownloadPath } from "@/utils";
import type { AxiosProgressEvent } from "axios";
import storeHeartbeat from "@/stores/heartbeat";
-const heartbeat = storeHeartbeat();
export const romApi = api;
async function uploadRoms({
@@ -21,6 +20,8 @@ async function uploadRoms({
platformId: number;
filesToUpload: File[];
}): Promise[]> {
+ const heartbeat = storeHeartbeat();
+
if (!socket.connected) socket.connect();
const uploadStore = storeUpload();
diff --git a/frontend/src/stores/roms.ts b/frontend/src/stores/roms.ts
index 305d1c4ea..739196cbf 100644
--- a/frontend/src/stores/roms.ts
+++ b/frontend/src/stores/roms.ts
@@ -11,8 +11,6 @@ import { defineStore } from "pinia";
type GalleryFilterStore = ExtractPiniaStoreType;
-const collectionStore = storeCollection();
-
export type SimpleRom = SimpleRomSchema;
export type DetailedRom = DetailedRomSchema;
@@ -212,6 +210,8 @@ export default defineStore("roms", {
this._filteredIDs = byMatched.intersection(this._filteredIDs);
},
_filterFavourites() {
+ const collectionStore = storeCollection();
+
const byFavourites = new Set(
this.filteredRoms
.filter((rom) =>