fix: lock upload button until tour redirect
deploy-preland / deploy barbariskatest (push) Successful in 22s

This commit is contained in:
Panfilov Konstantin committed 2026-10-16 05:23:52 +03:00
1 parent cf651218cc
commit 700408c1e0
2 files changed
+60 -71

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
<?php
/** Регрессия: до редиректа на Tour повторная загрузка блокируется для любого формата. */
$form = (string) file_get_contents(dirname(__DIR__) . '/components/form.php');
foreach (['function beginUploadPending', 'uploadDots', 'Загрузка', 'uploadPending'] as $needle) {
if (!str_contains($form, $needle)) {
fwrite(STDERR, "FAIL: preland uploader must contain {$needle}\n");
exit(1);
}
}
echo "OK: preland upload button state\n";