feat(library): add the merge duplicate dialog
Build, Test & Push Frontend / quality-check (push) Successful in 18s
Build, Test & Push Frontend / docker (push) Successful in 24s

This commit is contained in:
lobo committed 2026-09-28 11:25:45 +02:00
1 parent 01ae372b2d
commit 78ba0700c8
10 files changed
+355 -84

No files matched your search

+8
View File
@@ -33,3 +33,11 @@ export const saveCorrection = (appid, field, value) =>
* DELETE: back to the source's value, 204.
*/
export const resetCorrection = (appid, field) => apiFetch(url(appid, field), {method: 'DELETE'});
/**
* POST: 200 {appid} = the key the game lives under now; 400 {code: SAME_GAME | STEAM_GAMES}, 403 below AUDITOR,
* 404 {code: GAME_NOT_FOUND} for a game not in ToBePlayed.
*/
export const mergeGame = (appid, otherAppid) =>
apiFetch(`${import.meta.env.VITE_CORE_API_URL}/api/library/games/${appid}/merge`,
{method: 'POST', headers: JSON_HEADERS, body: JSON.stringify({otherAppid})});