This commit is contained in:
Hachi-R 2024-11-07 20:35:33 -03:00
parent a9085ec2ed
commit f22896303d
3 changed files with 4 additions and 12 deletions

View File

@ -14,4 +14,4 @@ export const AddShouldSeedColumn: HydraMigration = {
return table.dropColumn("shouldSeed");
});
},
};
};

View File

@ -67,12 +67,8 @@ export class PythonInstance {
);
if (response.data && response.data.length > 0) {
for (const seed of response.data) {
await gameRepository.update(
{ id: seed.gameId },
{ status: "seeding" }
);
await gameRepository.update({ id: seed.gameId }, { status: "seeding" });
}
}

View File

@ -172,15 +172,11 @@ export function DownloadGroup({
</Button>
{seed && game.shouldSeed && (
<Button theme="outline">
{t("stop_seed")}
</Button>
<Button theme="outline">{t("stop_seed")}</Button>
)}
{seed && !game.shouldSeed && (
<Button theme="outline">
{t("resume_seed")}
</Button>
<Button theme="outline">{t("resume_seed")}</Button>
)}
</>
);