From 56cc984be4ea9eba8de5aab6bde0e53003d5175c Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 7 Jun 2025 11:57:06 -0400 Subject: [PATCH] [ROMM-1943] Consistent use of click handlers --- .../Gallery/AppBar/Collection/CollectionInfoDrawer.vue | 8 ++++---- frontend/src/components/Gallery/AppBar/Platform/Base.vue | 2 +- .../components/Gallery/AppBar/Platform/FirmwareBtn.vue | 2 +- .../Gallery/AppBar/Platform/PlatformInfoDrawer.vue | 6 +++--- .../src/components/Gallery/AppBar/common/FilterBtn.vue | 2 +- .../AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue | 2 +- .../AppBar/common/FilterDrawer/FilterFavouritesBtn.vue | 2 +- .../AppBar/common/FilterDrawer/FilterMatchedBtn.vue | 2 +- .../AppBar/common/FilterDrawer/FilterPlayablesBtn.vue | 2 +- .../Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue | 2 +- .../AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue | 2 +- .../components/Gallery/AppBar/common/GalleryViewBtn.vue | 2 +- .../src/components/Gallery/AppBar/common/SelectingBtn.vue | 2 +- frontend/src/components/Gallery/FabOverlay.vue | 2 +- .../Settings/Administration/Users/Dialog/CreateUser.vue | 2 +- .../Settings/Administration/Users/Dialog/DeleteUser.vue | 2 +- .../common/Collection/Dialog/CreateCollection.vue | 4 ++-- frontend/src/components/common/Game/AdminMenu.vue | 2 +- frontend/src/components/common/Game/Dialog/EditRom.vue | 7 +++---- frontend/src/components/common/Game/Dialog/MatchRom.vue | 4 ++-- .../components/common/Navigation/CollectionsDrawer.vue | 2 +- frontend/src/components/common/SearchCover.vue | 4 ++-- frontend/src/locales/de_DE/rom.json | 2 +- frontend/src/locales/en_GB/rom.json | 2 +- frontend/src/locales/en_US/rom.json | 2 +- frontend/src/locales/es_ES/rom.json | 2 +- frontend/src/locales/fr_FR/rom.json | 2 +- frontend/src/locales/it_IT/rom.json | 2 +- frontend/src/locales/ja_JP/rom.json | 2 +- frontend/src/locales/ko_KR/rom.json | 2 +- frontend/src/locales/pt_BR/rom.json | 2 +- frontend/src/locales/ro_RO/rom.json | 2 +- frontend/src/locales/ru_RU/rom.json | 2 +- frontend/src/locales/zh_CN/rom.json | 2 +- frontend/src/views/Auth/Login.vue | 2 +- frontend/src/views/Player/EmulatorJS/Base.vue | 6 +++--- frontend/src/views/Player/RuffleRS/Base.vue | 2 +- frontend/src/views/Scan.vue | 4 ++-- 38 files changed, 51 insertions(+), 52 deletions(-) diff --git a/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue b/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue index f66b758c8..8b207089e 100644 --- a/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue +++ b/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue @@ -144,7 +144,7 @@ async function updateCollection() {
-
+
diff --git a/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue b/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue index 9c30c13c8..fd2fe449a 100644 --- a/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue +++ b/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue @@ -201,7 +201,7 @@ watch(
-
+
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue index b46ce2ebc..bc82441e1 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue @@ -25,7 +25,7 @@ function setDuplicates() { block variant="tonal" :color="filterDuplicates ? 'primary' : ''" - @click="setDuplicates()" + @click="setDuplicates" :disabled="fetchTotalRoms > 10000" > diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue index 3cb4ca3aa..a05e17fad 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue @@ -22,7 +22,7 @@ function setFavourites() { block variant="tonal" :color="filterFavourites ? 'primary' : ''" - @click="setFavourites()" + @click="setFavourites" > mdi-star mdi-file-find mdi-play diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue index 513c208a1..40dc408b9 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue @@ -27,7 +27,7 @@ function setRA() { block variant="tonal" :color="filterRA ? 'primary' : ''" - @click="setRA()" + @click="setRA" :disabled="fetchTotalRoms > 10000" > mdi-trophy diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue index 942bbd85a..ba2c39571 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue @@ -22,7 +22,7 @@ function setUnmatched() { block variant="tonal" :color="filterUnmatched ? 'primary' : ''" - @click="setUnmatched()" + @click="setUnmatched" > mdi-file-find-outline diff --git a/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue b/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue index 2619ca4aa..ae5c61da0 100644 --- a/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue @@ -24,6 +24,6 @@ const romsStore = storeRoms(); class="mr-0" icon="mdi-select-group" aria-label="Multi select" - @click="romsStore.setSelecting()" /> diff --git a/frontend/src/components/Gallery/FabOverlay.vue b/frontend/src/components/Gallery/FabOverlay.vue index d36c66621..55e7393fb 100644 --- a/frontend/src/components/Gallery/FabOverlay.vue +++ b/frontend/src/components/Gallery/FabOverlay.vue @@ -302,7 +302,7 @@ function onDownload() { elevation="8" :size="40" rounded="0" - @click="scrollToTop()" + @click="scrollToTop" >mdi-chevron-up diff --git a/frontend/src/components/Settings/Administration/Users/Dialog/CreateUser.vue b/frontend/src/components/Settings/Administration/Users/Dialog/CreateUser.vue index 3e7c4b9b7..20d0c6a25 100644 --- a/frontend/src/components/Settings/Administration/Users/Dialog/CreateUser.vue +++ b/frontend/src/components/Settings/Administration/Users/Dialog/CreateUser.vue @@ -118,7 +118,7 @@ function closeDialog() { :disabled="!user.username || !user.password" :variant="!user.username || !user.password ? 'plain' : 'flat'" class="text-romm-green bg-toplayer" - @click="createUser()" + @click="createUser" > {{ t("common.create") }} diff --git a/frontend/src/components/Settings/Administration/Users/Dialog/DeleteUser.vue b/frontend/src/components/Settings/Administration/Users/Dialog/DeleteUser.vue index 4e31b7fde..c0b69bc70 100644 --- a/frontend/src/components/Settings/Administration/Users/Dialog/DeleteUser.vue +++ b/frontend/src/components/Settings/Administration/Users/Dialog/DeleteUser.vue @@ -80,7 +80,7 @@ function closeDialog() { Cancel - + Confirm diff --git a/frontend/src/components/common/Collection/Dialog/CreateCollection.vue b/frontend/src/components/common/Collection/Dialog/CreateCollection.vue index 3b663381d..4575110d4 100644 --- a/frontend/src/components/common/Collection/Dialog/CreateCollection.vue +++ b/frontend/src/components/common/Collection/Dialog/CreateCollection.vue @@ -127,7 +127,7 @@ function closeDialog() { variant="outlined" required hide-details - @keyup.enter="createCollection()" + @keyup.enter="createCollection" /> @@ -140,7 +140,7 @@ function closeDialog() { variant="outlined" required hide-details - @keyup.enter="createCollection()" + @keyup.enter="createCollection" /> diff --git a/frontend/src/components/common/Game/AdminMenu.vue b/frontend/src/components/common/Game/AdminMenu.vue index bddeffd1c..79df167b4 100644 --- a/frontend/src/components/common/Game/AdminMenu.vue +++ b/frontend/src/components/common/Game/AdminMenu.vue @@ -168,7 +168,7 @@ async function onScan() { {{ t("rom.edit-rom") }} - + {{ t("rom.refresh-metadata") diff --git a/frontend/src/components/common/Game/Dialog/EditRom.vue b/frontend/src/components/common/Game/Dialog/EditRom.vue index 424ef1dde..f6d0155fb 100644 --- a/frontend/src/components/common/Game/Dialog/EditRom.vue +++ b/frontend/src/components/common/Game/Dialog/EditRom.vue @@ -219,7 +219,7 @@ function closeDialog() { variant="outlined" required hide-details - @keyup.enter="updateRom()" + @keyup.enter="updateRom" /> @@ -229,10 +229,10 @@ function closeDialog() { v-model="rom.fs_name" class="py-2" :rules="[(value: string) => !!value]" - :label="rom.multi ? t('rom.foldername') : t('rom.filename')" + :label="rom.multi ? t('rom.folder-name') : t('rom.filename')" variant="outlined" required - @keyup.enter="updateRom()" + @keyup.enter="updateRom" >