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:
20 files changed
+1863
-222
No files matched your search
@@ -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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user