feat: pool grid exposes refresh hook for profile sync

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 20:03:37 +02:00
parent accd3230a6
commit 0215bcb8f3
+4
View File
@@ -593,6 +593,10 @@ function setupGridNode(node) {
if (node._countEl) node._countEl.textContent = `${n} image${n === 1 ? "" : "s"}`;
};
// public hook for the Pool Profile companion: after it sets our pool_id widget
// to the selected profile id, it calls this to repaint the grid from that dir.
node._datasetePoolRefresh = () => node._gridRefresh();
// initial width (a sensible wide default) + content-driven height; the node
// stays freely resizable (no width floor) and the grid flex-wraps to fit.
node._lastCount = 0;