feat(webui): improve operation feedback

Keep confirmations in dialogs while showing clear progress and results for long-running actions.

Auto-close completed notices, preserve important outcomes across reloads, and avoid noise from routine edits.
This commit is contained in:
DrSmoothl committed 2026-07-31 15:35:03 +08:00
1 parent b099dbe8cd
commit b982927b4a
20 files changed
+1863 -222

No files matched your search

+5 -1
View File
@@ -94,9 +94,13 @@ export function AppLayout() {
const refreshUpdate = useCallback(async (force = false) => {
try {
setUpdateInfo(await api.update.check(force));
const next = await api.update.check(force);
setUpdateInfo(next);
return next;
} catch (e) {
console.error('update-check', e);
if (force) throw e;
return null;
}
}, [api]);