fix #2055
This commit is contained in:
parent
e0bfc590b2
commit
2d51a5def9
@ -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)
|
||||
|
@ -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 })
|
||||
|
@ -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 }) {
|
||||
<Link href={`/items/${item.id}/edit`} className='text-reset fw-bold'>
|
||||
edit
|
||||
</Link>
|
||||
<PaymentInfo item={item} disableRetry={disableRetry} setDisableRetry={setDisableRetry} />
|
||||
</>)}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -112,12 +112,14 @@ function NoteHeader ({ color, children, big }) {
|
||||
function NoteItem ({ item, ...props }) {
|
||||
return (
|
||||
<div>
|
||||
{item.title
|
||||
? <Item item={item} itemClassName='pt-0' {...props} />
|
||||
: (
|
||||
<RootProvider root={item.root}>
|
||||
<Comment item={item} noReply includeParent clickToContext {...props} />
|
||||
</RootProvider>)}
|
||||
{item.isJob
|
||||
? <ItemJob item={item} {...props} />
|
||||
: item.title
|
||||
? <Item item={item} itemClassName='pt-0' {...props} />
|
||||
: (
|
||||
<RootProvider root={item.root}>
|
||||
<Comment item={item} noReply includeParent clickToContext {...props} />
|
||||
</RootProvider>)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user