mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 08:12:40 +10:00
* feat: move game import to new task system * fix: sizing issue with new task UI * fix: lint * feat: add pcgamingwiki task
This commit is contained in:
@ -334,7 +334,7 @@ async function importGame(useMetadata: boolean) {
|
||||
: undefined;
|
||||
const option = games.unimportedGames[currentlySelectedGame.value];
|
||||
|
||||
const game = await $dropFetch("/api/v1/admin/import/game", {
|
||||
const { taskId } = await $dropFetch("/api/v1/admin/import/game", {
|
||||
method: "POST",
|
||||
body: {
|
||||
path: option.game,
|
||||
@ -343,7 +343,7 @@ async function importGame(useMetadata: boolean) {
|
||||
},
|
||||
});
|
||||
|
||||
router.push(`/admin/library/${game.id}`);
|
||||
router.push(`/admin/task/${taskId}`);
|
||||
}
|
||||
function importGame_wrapper(metadata = true) {
|
||||
importLoading.value = true;
|
||||
|
||||
Reference in New Issue
Block a user