This commit is contained in:
MasterPhooey
2026-04-25 08:22:26 -05:00
parent dd2bdda431
commit 251b0280b6

View File

@@ -1618,6 +1618,12 @@
}).join(""); }).join("");
} }
function rerenderReviewLists() {
renderCapturedItems(uiState.captured);
renderSampleLibrary(uiState.samples);
syncButtons();
}
async function refreshSamples() { async function refreshSamples() {
const data = await api("/api/samples", { method: "GET" }); const data = await api("/api/samples", { method: "GET" });
renderSampleLibrary(data); renderSampleLibrary(data);
@@ -1649,7 +1655,7 @@
alert(error.message); alert(error.message);
} finally { } finally {
uiState.reviewBusy = false; uiState.reviewBusy = false;
syncButtons(); rerenderReviewLists();
} }
} }
@@ -2383,7 +2389,7 @@
alert(error.message); alert(error.message);
} finally { } finally {
uiState.reviewBusy = false; uiState.reviewBusy = false;
syncButtons(); rerenderReviewLists();
} }
} }
@@ -2661,7 +2667,7 @@
alert("Clear failed: " + error.message); alert("Clear failed: " + error.message);
} finally { } finally {
uiState.reviewBusy = false; uiState.reviewBusy = false;
syncButtons(); rerenderReviewLists();
} }
}); });