mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-05-18 13:55:16 +02:00
Add Clear button to notification bell dropdown
- Add notifications_cleared_at column to users table - Clear button marks notifications as seen without deleting history - Badge and dropdown only show notifications after last clear - History page still shows all notifications Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
262a91b558
commit
28d6523959
5 changed files with 69 additions and 11 deletions
|
|
@ -313,6 +313,9 @@ export const notificationsApi = {
|
|||
api.get<{ count: number }>('/notifications/count', {
|
||||
params: hours ? { hours } : undefined,
|
||||
}),
|
||||
|
||||
clear: () =>
|
||||
api.post<{ message: string }>('/notifications/clear'),
|
||||
};
|
||||
|
||||
// Admin API
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue