From ad66d9e03b0bb00eba9c19eceefe73756e10d95e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 18 Mar 2020 12:41:38 -0400 Subject: [PATCH] LP1867834 Staffcat clear basket on logout Tell the browser/local store service to treat the staff catalog basket cache key as a "login item", meaning it should be cleared upon logout. Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts b/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts index 0d97220c80..20fb491825 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/basket.service.ts @@ -30,6 +30,9 @@ export class BasketService { ) { this.idList = []; this.onChange = new EventEmitter(); + + // Tell the browser store service to clear the basket on logout. + this.store.addLoginSessionKey(BASKET_CACHE_KEY_COOKIE); } hasRecordId(id: number): boolean { -- 2.11.0