1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-01 16:37:39 +01:00

Fix another bug in admin panel

This commit is contained in:
Cooper Ransom 2024-03-09 13:59:08 -05:00
parent 42b68e972e
commit fb0f96af08

View file

@ -127,10 +127,31 @@ export function WorkerTestPart() {
<span className="font-bold">٩(ˊˋ*)و</span>
</p>
) : (
<div>
<div className="text-right">
<p>
Some workers have failed the test...{" "}
<span className="font-bold">( )</span>
</p>
{/* Show button if tests fail */}
<div className="flex justify-end">
<Button
theme="purple"
loading={testState.loading}
onClick={async (event) => {
event.preventDefault();
setButtonDisabled(true);
await runTests();
setButtonClicked(true);
setTimeout(() => setButtonDisabled(false), 250);
}}
disabled={buttonDisabled}
>
Test workers
</Button>
</div>
</div>
</div>
)
) : (
<Button