fix(skip-objects): enlarged plate preview fails to load on auth-enabled instances (#1046)

The mini thumbnail wrapped its src with withStreamToken() (appends the
  short-lived camera-stream token, needed because <img> can't send an
  Authorization header), but the enlarged lightbox <img> used a bare
  ${status.cover_url}?view=top. On auth-enabled instances the backend
  rejected the unauthenticated request and the browser showed the
  broken-image icon. Wrap the enlarged src with withStreamToken() too.
This commit is contained in:
maziggy
2026-04-20 11:49:45 +02:00
parent d0f35e5d60
commit e5dfb96351
4 changed files with 40 additions and 39 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ export function SkipObjectsModal({ printerId, isOpen, onClose }: SkipObjectsModa
>
{status?.cover_url ? (
<img
src={`${status.cover_url}?view=top`}
src={withStreamToken(`${status.cover_url}?view=top`)}
alt={t('printers.printPreview')}
className="w-full h-full object-contain rounded-lg bg-gray-900"
/>