[web] Design review: last row's menu not clipped, Hostname focused after loading, popover closes on Esc and outside click, phone engine chip in the top bar, paused and needs-attention copy with Restore in the panel, change bar offers and countdown, focus after share and kept, fingerprint check when signing by hand, draft kept through sign-in
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// runs; quiet retries while edge reloads; the id kept in sessionStorage so a reload resumes it.
|
||||
|
||||
import { get } from "./api";
|
||||
import { refresh } from "./app.svelte";
|
||||
import { app, refresh } from "./app.svelte";
|
||||
import type { ApplyView } from "./types";
|
||||
|
||||
export const FINAL = ["kept", "reverted", "failed", "needs_attention"];
|
||||
@@ -36,6 +36,11 @@ export function follow(id: string, onupdate: (a: ApplyView) => void, every = 100
|
||||
remember(id);
|
||||
const tick = async () => {
|
||||
if (stopped) return;
|
||||
if (app.signedOut) {
|
||||
// No requests while signed out (the overview poll stops too); look again shortly.
|
||||
timer = setTimeout(tick, every);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const a = await get<ApplyView>(`/applies/${encodeURIComponent(id)}`);
|
||||
if (stopped) return;
|
||||
|
||||
Reference in New Issue
Block a user