diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index 399a6db7d..0168bc730 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -325,6 +325,7 @@ async def update_rom( "name": rom.file_name, "summary": "", "url_screenshots": [], + "path_screenshots": [], "path_cover_s": "", "path_cover_l": "", "url_cover": "", diff --git a/frontend/src/components/common/Game/Dialog/EditRom.vue b/frontend/src/components/common/Game/Dialog/EditRom.vue index ddb4e85f7..b0f4b8821 100644 --- a/frontend/src/components/common/Game/Dialog/EditRom.vue +++ b/frontend/src/components/common/Game/Dialog/EditRom.vue @@ -6,7 +6,7 @@ import storeHeartbeat from "@/stores/heartbeat"; import storeRoms, { type SimpleRom } from "@/stores/roms"; import type { Events } from "@/types/emitter"; import type { Emitter } from "mitt"; -import { inject, ref } from "vue"; +import { inject, ref, computed } from "vue"; import { useRoute } from "vue-router"; import { useDisplay, useTheme } from "vuetify"; @@ -55,6 +55,10 @@ async function removeArtwork() { removeCover.value = true; } +const noMetadataMatch = computed(() => { + return !rom.value.igdb_id && !rom.value.moby_id && !rom.value.sgdb_id; +}); + async function handleRomUpdate(options, successMessage) { if (!rom.value) return; @@ -178,10 +182,28 @@ function closeDialog() { variant="outlined" required hide-details - @keyup.enter="updateRom()" + @keyup.enter="updateRom" /> + + + + Unmatch Rom + + + + Cancel + + Save + + + @@ -236,24 +258,6 @@ function closeDialog() { -