Revision 6629bac0
Added by Ohad Levy over 6 years ago
webpack/assets/javascripts/react_app/redux/reducers/notifications/notifications.fixtures.js | ||
---|---|---|
{
|
||
expandedGroup: null,
|
||
isDrawerOpen: null,
|
||
isPolling: false
|
||
isPolling: false,
|
||
hasUnreadMessages: false
|
||
});
|
||
|
||
export const stateWithNotifications = Immutable(
|
||
{
|
||
isDrawerOpen: true,
|
||
expandedGroup: 'Hosts',
|
||
hasUnreadMessages: true,
|
||
notifications: [
|
||
{
|
||
id: 52435,
|
||
... | ... | |
{
|
||
isDrawerOpen: true,
|
||
expandedGroup: 'Hosts',
|
||
hasUnreadMessages: true,
|
||
notifications: [
|
||
{
|
||
id: 52435,
|
Also available in: Unified diff
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