pi-design-deck 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/form/css/controls.css +2 -3
- package/form/js/deck-core.js +2 -2
- package/form/js/deck-session.js +4 -4
- package/package.json +1 -1
package/form/css/controls.css
CHANGED
package/form/js/deck-core.js
CHANGED
|
@@ -285,8 +285,8 @@ function initLayoutToggle() {
|
|
|
285
285
|
const btn = event.target.closest(".layout-btn");
|
|
286
286
|
if (!btn) return;
|
|
287
287
|
const cols = btn.dataset.cols;
|
|
288
|
-
const
|
|
289
|
-
if (cols ===
|
|
288
|
+
const stored = getStoredLayout();
|
|
289
|
+
if (cols === stored) {
|
|
290
290
|
// Clicking active button toggles back to auto
|
|
291
291
|
setStoredLayout(null);
|
|
292
292
|
applyLayout(null);
|
package/form/js/deck-session.js
CHANGED
|
@@ -403,10 +403,10 @@ function connectEvents() {
|
|
|
403
403
|
// Reset timeout for next option
|
|
404
404
|
if (pending.timeoutId) clearTimeout(pending.timeoutId);
|
|
405
405
|
pending.timeoutId = setTimeout(() => {
|
|
406
|
-
const
|
|
407
|
-
if (!
|
|
408
|
-
const received =
|
|
409
|
-
const expected =
|
|
406
|
+
const entry = pendingGenerate.get(payload.slideId);
|
|
407
|
+
if (!entry || entry.isRegen) return;
|
|
408
|
+
const received = entry.receivedCount || 0;
|
|
409
|
+
const expected = entry.expectedCount || 1;
|
|
410
410
|
restoreGenerateButton(payload.slideId);
|
|
411
411
|
if (received < expected) {
|
|
412
412
|
showSaveToast(`Generated ${received} of ${expected} options`, true);
|