mirror of
http://nostr-git-proxy.forgejo.svc.cluster.local/git/45387ca441053e230b2126802005eb03767ab59d84555e8bac86b6e7def14e27/myadhd
synced 2026-09-23 20:23:10 +00:00
fix(done-wall): intercept timer modal completion path to correctly hydrate the IndexedDB history records upon resolving the action natively
All checks were successful
Build and Deploy / deploy (push) Successful in 40s
All checks were successful
Build and Deploy / deploy (push) Successful in 40s
This commit is contained in:
parent
2db8a05a5e
commit
8e69e24869
1 changed files with 2 additions and 0 deletions
|
|
@ -466,6 +466,7 @@
|
|||
$('#timer-complete').hidden = true;
|
||||
// Mark the current one-thing step as done in the breaker
|
||||
var nowData = store('now');
|
||||
var taskText = $('#now-text').textContent || (nowData && nowData.text) || '';
|
||||
if (nowData && nowData.fromBreaker && typeof nowData.stepIndex === 'number') {
|
||||
var b = store(breakerKey);
|
||||
if (b && b.steps[nowData.stepIndex]) {
|
||||
|
|
@ -474,6 +475,7 @@
|
|||
breakerRender();
|
||||
}
|
||||
}
|
||||
handleNewDoneTasks(taskText);
|
||||
// Reset timer so it's fresh for the next step
|
||||
timerReset();
|
||||
// Clear one-thing and show next step prompt
|
||||
|
|
|
|||
Loading…
Reference in a new issue