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 <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
) {
this.idList = [];
this.onChange = new EventEmitter<number[]>();
+
+ // Tell the browser store service to clear the basket on logout.
+ this.store.addLoginSessionKey(BASKET_CACHE_KEY_COOKIE);
}
hasRecordId(id: number): boolean {