feat: mark all read notifications (#1963)
* feat: mark all read notifications * fix: changed string to boolean * fix: changed snoozed condition
This commit is contained in:
parent
5ad5da4fd7
commit
91c10930a4
3 changed files with 101 additions and 4 deletions
|
|
@ -164,6 +164,7 @@ from plane.api.views import (
|
|||
# Notification
|
||||
NotificationViewSet,
|
||||
UnreadNotificationEndpoint,
|
||||
MarkAllReadNotificationViewSet,
|
||||
## End Notification
|
||||
# Public Boards
|
||||
ProjectDeployBoardViewSet,
|
||||
|
|
@ -1494,6 +1495,15 @@ urlpatterns = [
|
|||
UnreadNotificationEndpoint.as_view(),
|
||||
name="unread-notifications",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/users/notifications/mark-all-read/",
|
||||
MarkAllReadNotificationViewSet.as_view(
|
||||
{
|
||||
"post": "create",
|
||||
}
|
||||
),
|
||||
name="mark-all-read-notifications",
|
||||
),
|
||||
## End Notification
|
||||
# Public Boards
|
||||
path(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue