Merge branch 'feat/unmatch-rom' of github.com:SaraVieira/romm into feat/unmatch-rom

This commit is contained in:
SaraVieira
2024-08-30 19:12:49 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -290,7 +290,7 @@ async def update_rom(
rename_as_source: bool = False,
remove_cover: bool = False,
artwork: UploadFile | None = None,
unmatch: bool = False
unmatch_metadata: bool = False
) -> DetailedRomSchema:
"""Update rom endpoint
@@ -299,7 +299,7 @@ async def update_rom(
id (Rom): Rom internal id
rename_as_source (bool, optional): Flag to rename rom file as matched IGDB game. Defaults to False.
artwork (UploadFile, optional): Custom artork to set as cover. Defaults to File(None).
unmatch: Weather to remove the match for this game. Defaults to false
unmatch_metadata: Remove the metadata matches for this game. Defaults to False.
Raises:
HTTPException: If a rom already have that name when enabling the rename_as_source flag

View File

@@ -226,7 +226,7 @@ function closeDialog() {
<v-row class="justify-center mt-4 mb-2" no-gutters>
<v-btn-group divided density="compact">
<v-btn
v-if="rom.igdb_id || rom.moby_id || rom.sgdb_id"
:disabled="rom.igdb_id || rom.moby_id || rom.sgdb_id"
class="text-romm-red bg-terciary"
variant="flat"
@click="() => updateRom({ unmatch: true })"