mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 01:02:24 +00: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>
|
<span className="font-bold">٩(ˊᗜˋ*)و♡</span>
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<p>
|
<div>
|
||||||
Some workers have failed the test...{" "}
|
<div className="text-right">
|
||||||
<span className="font-bold">(•᷄∩•᷅ )</span>
|
<p>
|
||||||
</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
|
<Button
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue