LP1848550 Cache org settings in IndexedDB (Angular)
authorBill Erickson <berickxx@gmail.com>
Mon, 2 Dec 2019 17:26:22 +0000 (12:26 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 7 Apr 2020 17:13:10 +0000 (13:13 -0400)
commitd1461c346a11bacabd433de3999057ae18439863
tree5746ac7327d987c5a77a191441ec7a7a534b00b4
parent18f6b30a6e82bb34b44f553b554a0650b9634452
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