mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-30 05:21:18 -08:00
Make the console survive locked files and private handles, and start with Activities off
AI Assisted
This commit is contained in:
1 parent
c52244bee1
commit
2cb174ecf0
17 files changed
+160
-69
No files matched your search
@@ -391,7 +391,12 @@ export function renderCard(item) {
|
||||
const skip = el("button", "btn tiny", skipped ? "Do not skip" : "Skip this one");
|
||||
skip.type = "button";
|
||||
skip.style.marginTop = "16px";
|
||||
skip.addEventListener("click", () => (skipped ? stage(item.id, null) : skipAndMoveOn(item.id)));
|
||||
skip.addEventListener("click", () => {
|
||||
if (!skipped) return skipAndMoveOn(item.id);
|
||||
// Keep a note typed with the skip: the box still shows it, so the send must carry it.
|
||||
const kept = page.local.staged[item.id];
|
||||
stage(item.id, kept && kept.text ? { type: "answer", kind: item.kind, text: kept.text } : null);
|
||||
});
|
||||
card.appendChild(skip);
|
||||
if (page.local.skipFlash === item.id) {
|
||||
card.classList.add("is-skip-flash");
|
||||
|
||||
Reference in new issue
Block a user