From 2d51a5def90608180f0edb59da720db9f933f336 Mon Sep 17 00:00:00 2001 From: k00b Date: Tue, 1 Apr 2025 17:18:44 -0500 Subject: [PATCH] fix #2055 --- api/resolvers/item.js | 2 +- components/item-info.js | 2 +- components/item-job.js | 4 +++- components/notifications.js | 14 ++++++++------ 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/api/resolvers/item.js b/api/resolvers/item.js index a297191e..5f65a9e8 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -509,7 +509,7 @@ export default { ${whereClause( '"parentId" IS NULL', '"Item"."deletedAt" IS NULL', - '"Item"."status" = \'ACTIVE\'', + activeOrMine(me), 'created_at <= $1', '"pinId" IS NULL', subClause(sub, 4) diff --git a/components/item-info.js b/components/item-info.js index 17c96cc6..100814b4 100644 --- a/components/item-info.js +++ b/components/item-info.js @@ -282,7 +282,7 @@ function InfoDropdownItem ({ item }) { ) } -function PaymentInfo ({ item, disableRetry, setDisableRetry }) { +export function PaymentInfo ({ item, disableRetry, setDisableRetry }) { const { me } = useMe() const toaster = useToast() const retryCreateItem = useRetryCreateItem({ id: item.id }) diff --git a/components/item-job.js b/components/item-job.js index d45518d0..17d2c727 100644 --- a/components/item-job.js +++ b/components/item-job.js @@ -13,8 +13,9 @@ import { MEDIA_URL } from '@/lib/constants' import { abbrNum } from '@/lib/format' import { Badge } from 'react-bootstrap' import SubPopover from './sub-popover' +import { PaymentInfo } from './item-info' -export default function ItemJob ({ item, toc, rank, children }) { +export default function ItemJob ({ item, toc, rank, children, disableRetry, setDisableRetry }) { const isEmail = string().email().isValidSync(item.url) return ( @@ -78,6 +79,7 @@ export default function ItemJob ({ item, toc, rank, children }) { edit + )} diff --git a/components/notifications.js b/components/notifications.js index 72dfc46e..de5807a1 100644 --- a/components/notifications.js +++ b/components/notifications.js @@ -112,12 +112,14 @@ function NoteHeader ({ color, children, big }) { function NoteItem ({ item, ...props }) { return (
- {item.title - ? - : ( - - - )} + {item.isJob + ? + : item.title + ? + : ( + + + )}
) }