LP1848550 Cache org settings in IndexedDB (Angular) user/berick/lp1854850-ang-indexeddb-coms
authorBill Erickson <berickxx@gmail.com>
Mon, 2 Dec 2019 17:26:22 +0000 (12:26 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 3 Dec 2019 16:54:40 +0000 (11:54 -0500)
commit79a528bcaa33c76e7e013071e288c5e445c97d19
tree329dea645b36e63feddb87e74e24b9ebfb698eec
parent6dcd2fcd73a2a990db1d591384305ee5ec221bf6
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