Fix shared request access and Jellyfin-ready pipeline status
This commit is contained in:
@@ -567,21 +567,17 @@ export default function HomePage() {
|
||||
<button
|
||||
key={`${item.title || 'Untitled'}-${index}`}
|
||||
type="button"
|
||||
disabled={!item.requestId || !item.accessible}
|
||||
disabled={!item.requestId}
|
||||
onClick={() =>
|
||||
item.requestId && item.accessible && router.push(`/requests/${item.requestId}`)
|
||||
item.requestId && router.push(`/requests/${item.requestId}`)
|
||||
}
|
||||
>
|
||||
{item.title || 'Untitled'} {item.year ? `(${item.year})` : ''}{' '}
|
||||
{!item.requestId
|
||||
? '- not requested'
|
||||
: !item.accessible
|
||||
? `- ${item.statusLabel || 'Requested'} · requested by ${
|
||||
item.requestedBy || 'another user'
|
||||
}`
|
||||
: item.statusLabel
|
||||
? `- ${item.statusLabel}`
|
||||
: ''}
|
||||
: item.statusLabel
|
||||
? `- ${item.statusLabel}`
|
||||
: '- already requested'}
|
||||
</button>
|
||||
))
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user