impr: blocking quick restart for long tests on result page

Quick restart is already disabled for long tests during the test.
This also disables it on the result page,
to make sure the user really wants to close
the result after a long time typing.
This commit is contained in:
Miodec 2023-11-30 13:28:48 +00:00
parent bd2d360fc2
commit bc56cbc9e1

View file

@ -144,7 +144,7 @@ export function restart(options = {} as RestartOptions): void {
event?.preventDefault();
return;
}
if (ActivePage.get() === "test" && !TestUI.resultVisible) {
if (ActivePage.get() === "test") {
if (!ManualRestart.get()) {
if (Config.mode !== "zen") event?.preventDefault();
if (