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

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

View File

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