mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
lint
This commit is contained in:
@@ -14,4 +14,4 @@ export const AddShouldSeedColumn: HydraMigration = {
|
|||||||
return table.dropColumn("shouldSeed");
|
return table.dropColumn("shouldSeed");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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" }
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user