forked from github/plane
fix: Add missing project and subscriber filters to the list of filter params (#3497)
* add missing project and subscriber filters to the list of filter params * add toast message on successfully marking all notifications as read
This commit is contained in:
parent
c4efdcd704
commit
00e07443b0
@ -95,6 +95,7 @@ export const NotificationHeader: React.FC<NotificationHeaderProps> = (props) =>
|
|||||||
<MoreVertical className="h-3.5 w-3.5" />
|
<MoreVertical className="h-3.5 w-3.5" />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
closeOnSelect
|
||||||
>
|
>
|
||||||
<CustomMenu.MenuItem onClick={markAllNotificationsAsRead}>
|
<CustomMenu.MenuItem onClick={markAllNotificationsAsRead}>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
@ -304,7 +304,17 @@ export const ISSUE_DISPLAY_FILTERS_BY_LAYOUT: {
|
|||||||
},
|
},
|
||||||
my_issues: {
|
my_issues: {
|
||||||
spreadsheet: {
|
spreadsheet: {
|
||||||
filters: ["priority", "state_group", "labels", "assignees", "created_by", "project", "start_date", "target_date"],
|
filters: [
|
||||||
|
"priority",
|
||||||
|
"state_group",
|
||||||
|
"labels",
|
||||||
|
"assignees",
|
||||||
|
"created_by",
|
||||||
|
"subscriber",
|
||||||
|
"project",
|
||||||
|
"start_date",
|
||||||
|
"target_date",
|
||||||
|
],
|
||||||
display_properties: true,
|
display_properties: true,
|
||||||
display_filters: {
|
display_filters: {
|
||||||
type: [null, "active", "backlog"],
|
type: [null, "active", "backlog"],
|
||||||
|
@ -264,6 +264,13 @@ const useUserNotification = () => {
|
|||||||
|
|
||||||
await userNotificationServices
|
await userNotificationServices
|
||||||
.markAllNotificationsAsRead(workspaceSlug.toString(), markAsReadParams)
|
.markAllNotificationsAsRead(workspaceSlug.toString(), markAsReadParams)
|
||||||
|
.then(() => {
|
||||||
|
setToastAlert({
|
||||||
|
type: "success",
|
||||||
|
title: "Success!",
|
||||||
|
message: "All Notifications marked as read.",
|
||||||
|
});
|
||||||
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "error",
|
type: "error",
|
||||||
|
@ -76,6 +76,8 @@ export class IssueFilterHelperStore implements IIssueFilterHelperStore {
|
|||||||
labels: filters?.labels || undefined,
|
labels: filters?.labels || undefined,
|
||||||
start_date: filters?.start_date || undefined,
|
start_date: filters?.start_date || undefined,
|
||||||
target_date: filters?.target_date || undefined,
|
target_date: filters?.target_date || undefined,
|
||||||
|
project: filters.project || undefined,
|
||||||
|
subscriber: filters.subscriber || undefined,
|
||||||
// display filters
|
// display filters
|
||||||
type: displayFilters?.type || undefined,
|
type: displayFilters?.type || undefined,
|
||||||
sub_issue: displayFilters?.sub_issue ?? true,
|
sub_issue: displayFilters?.sub_issue ?? true,
|
||||||
|
Loading…
Reference in New Issue
Block a user