diff --git a/imports/panel.tsx b/imports/panel.tsx index dbba64f..06ecd4c 100644 --- a/imports/panel.tsx +++ b/imports/panel.tsx @@ -67,9 +67,20 @@ export function Column({ >{l} _lists[1](_lists[0].map((l, ii) => ii === index ? { ...l, list: l.list.filter((f, iii) => iii !== i) } : l))} + onClick={() => { + if (confirm(`Sure delete ${l}?`)) { + _lists[1](_lists[0].map((l, ii) => ii === index ? { ...l, list: l.list.filter((f, iii) => iii !== i) } : l)); + } + }} >x )} + { + _lists[1](_lists[0].map((l, ii) => ii === index ? { ...l, list: [...l.list, 'new'] } : l)); + setSelected(selected.map((s, ii) => ii === index ? _lists[0][index].list.length : s)); + }} + >+