Answer the question
In order to leave comments, you need to log in
How to determine that the user has viewed the notification?
How can you tell if a user has opened a notification card in order to mark it as read?
Unread notifications - all that the user sees in the card for the first time.
When you open a card, notifications that are in view become read.
The user does not open notifications themselves.
There are two tabs for news #1 and news #2. Every minute a request is sent for new notifications.
For clarity, a screenshot of the prototype.
Perhaps there are some plugins or something similar on vue.
I would be very grateful for a hint in which direction to dig :)
Answer the question
In order to leave comments, you need to log in
for each element, add the isNew property. Then you go
over them when opening the notification panel and reset those that are placed in the container.
Optionally, add the New\All filter.
After the definition, send a request to the server with a status update, or store everything on the client, for example, in local storage
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question