feat: reopen the Add Book page on the last lookup tab picked #84
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!84
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/remember-add-book-tab"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #76
What changed
data-remember-tab="add-book-lookup") reopen on the last tab picked, stored in localStorage. Adding a run of books by title stays on Title Search, including when the page re-renders after each lookup.assets/js/remember_tab.js, generic for any daisyUI radio-tab group. Restoring fires the tab'schangeevent, so the Physical Scanner tab still focuses its input. If storage is blocked (some private modes) the page just starts on Scan Barcode as before.Tested
data-remember-taband every tab has its unique id.mix precommitpasses.341e4b44ff912f1380d6