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:
parent
42b68e972e
commit
fb0f96af08
1 changed files with 25 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue