LP1848550 Cache org settings in IndexedDB (Angular)
authorBill Erickson <berickxx@gmail.com>
Mon, 2 Dec 2019 17:26:22 +0000 (12:26 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 26 Dec 2019 17:19:52 +0000 (12:19 -0500)
commit91aadc6d04142f4108fa651019bdf5a9957333fb
tree0b128a71eb0ed49159c171a4fb1687886afcc5b9
parent36fc3c4e7edb05f1dd199d119d4f6bb334e2420d
LP1848550 Cache org settings in IndexedDB (Angular)

Teach the org settings lookup code to store cacheable settings (those
for "here") in IndexedDB to reduce the number of repetitive network
calls for org unit settings.

Settings cached in IndexedDB are cleared upon successful login to avoid
stale values.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/core/org.service.ts
Open-ILS/src/eg2/src/app/staff/login.component.ts