Project

General

Profile

« Previous | Next » 

Revision 6629bac0

Added by Ohad Levy over 6 years ago

fixes #20485 - cache notification indicator in local storage

this ensures that the toggle icon is not swapping between
different page loads.

long term maybe we should cache the entire notifications

View differences:

webpack/assets/javascripts/react_app/common/sessionStorage.js
getIsOpened: () => getValue('isDrawerOpen'),
setIsOpened: value => setValue('isDrawerOpen', value),
getExpandedGroup: () => getValue('expandedGroup'),
setExpandedGroup: value => setValue('expandedGroup', value)
setExpandedGroup: value => setValue('expandedGroup', value),
getHasUnreadMessages: () => getValue('hasUnreadMessages'),
setHasUnreadMessages: value => setValue('hasUnreadMessages', value)
};

Also available in: Unified diff