Fix shared request access and Jellyfin-ready pipeline status

This commit is contained in:
2026-03-03 16:01:36 +13:00
parent bac96c7db3
commit 96333c0d85
9 changed files with 219 additions and 85 deletions

View File

@@ -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>
))
)}