diff --git a/frontend/src/components/Gallery/AppBar/FilterBtn.vue b/frontend/src/components/Gallery/AppBar/FilterBtn.vue
index 53b79194b..f8f603fb6 100644
--- a/frontend/src/components/Gallery/AppBar/FilterBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/FilterBtn.vue
@@ -1,18 +1,10 @@
@@ -31,6 +23,6 @@ function showFilterDrawer() {
v-bind="props"
icon="mdi-filter-variant"
:color="activeFilterDrawer ? 'romm-accent-1' : ''"
- @click="showFilterDrawer" />
diff --git a/frontend/src/components/Gallery/FilterDrawer/Base.vue b/frontend/src/components/Gallery/FilterDrawer/Base.vue
index 53f092efb..47682b310 100644
--- a/frontend/src/components/Gallery/FilterDrawer/Base.vue
+++ b/frontend/src/components/Gallery/FilterDrawer/Base.vue
@@ -9,12 +9,9 @@ import { inject, nextTick, ref } from "vue";
// Props
const show = ref(false);
const emitter = inject>("emitter");
-emitter?.on("filterDrawerShow", () => {
- show.value = !show.value;
-});
-
const galleryFilterStore = storeGalleryFilter();
const {
+ activeFilterDrawer,
selectedGenre,
filterGenres,
selectedFranchise,
@@ -24,7 +21,6 @@ const {
selectedCompany,
filterCompanies,
} = storeToRefs(galleryFilterStore);
-
const filters = [
{
label: "Genre",
@@ -64,7 +60,7 @@ function resetFilters() {
@update:model-value="galleryFilterStore.switchActiveFilterDrawer()"
floating
width="300"
- v-model="show"
+ v-model="activeFilterDrawer"
:mobile="true"
>
diff --git a/frontend/src/components/Gallery/FirmwareDrawer.vue b/frontend/src/components/Gallery/FirmwareDrawer.vue
index 303d06ab7..93950326c 100644
--- a/frontend/src/components/Gallery/FirmwareDrawer.vue
+++ b/frontend/src/components/Gallery/FirmwareDrawer.vue
@@ -19,8 +19,6 @@ const galleryFilterStore = storeGalleryFilter();
const { activeFirmwareDrawer } = storeToRefs(galleryFilterStore);
const selectedFirmware = ref([]);
const emitter = inject>("emitter");
-// TODO: remove emitter
-// TODO: same behaviour on filter drawer
const HEADERS = [
{
title: "Firmware",
diff --git a/frontend/src/types/emitter.d.ts b/frontend/src/types/emitter.d.ts
index 77a10c976..e3a54e197 100644
--- a/frontend/src/types/emitter.d.ts
+++ b/frontend/src/types/emitter.d.ts
@@ -68,7 +68,6 @@ export type Events = {
};
openFabMenu: boolean;
filter: null;
- filterDrawerShow: null;
firmwareDrawerShow: null;
updateDataTablePages: null;
sortBarShow: null;