Skip to content

Commit

Permalink
feat: feed action add mark all as read
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 1, 2024
1 parent 58d9b3b commit 7b72ef2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/renderer/src/hooks/biz/useFeedActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useModalStack } from "@renderer/components/ui/modal"
import type { NativeMenuItem } from "@renderer/lib/native-menu"
import { useFeedClaimModal } from "@renderer/modules/claim"
import { FeedForm } from "@renderer/modules/discover/feed-form"
import { entryActions } from "@renderer/store/entry"
import { getFeedById, useFeedById } from "@renderer/store/feed"
import { useSubscriptionByFeedId } from "@renderer/store/subscription"
import { WEB_URL } from "@shared/constants"
Expand Down Expand Up @@ -68,6 +69,13 @@ export const useFeedActions = ({
type: "separator" as const,
disabled: isEntryList,
},
{
type: "text",
label: "Mark All as Read",
shortcut: "Meta+Shift+A",
disabled: isEntryList,
click: () => entryActions.markReadByFeedId(feedId),
},
...(!feed.ownerUserId && !!feed.id ?
[
{
Expand Down

0 comments on commit 7b72ef2

Please sign in to comment.