mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-03-15 23:03:30 +01:00
MAESTRO: show timeout notification
This commit is contained in:
@@ -24,7 +24,8 @@ export default function Home() {
|
||||
const isOversized = headerInput.length > MAX_HEADER_INPUT_BYTES;
|
||||
const canAnalyse = hasHeaderInput && !isOversized;
|
||||
const isLoading = status === "submitting" || status === "analysing";
|
||||
const showProgress = status === "analysing";
|
||||
const showProgress = status === "analysing" || status === "timeout";
|
||||
const incompleteTests = result?.metadata.incompleteTests ?? [];
|
||||
|
||||
const handleAnalyse = useCallback(() => {
|
||||
if (!canAnalyse) {
|
||||
@@ -86,6 +87,7 @@ export default function Home() {
|
||||
status={status}
|
||||
progress={progress}
|
||||
timeoutSeconds={30}
|
||||
incompleteTests={incompleteTests}
|
||||
/>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user