feat(pdf): inline preview by default with ?download=1 override + vehicle photo fallback
- WorkOrder and InjectorProtocol PDF routes now respond with Content-Disposition: inline (opens in browser tab so the user can read/print/save from the built-in PDF viewer). ?download=1 forces the classic attachment download. - CalendarBoard exportPdf() switched to the same inline default. - WO edit action + WO table row action + injector protocol actions now use ->url(...)->openUrlInNewTab() instead of streaming the PDF inline into the current tab. - Dashboard Docs tab has both a preview link and a "Descarcă" link. - Vehicle card photo falls back to WO's first uploaded photo when Vehicle model has no MediaLibrary integration of its own. Test CalendarEnhancementsTest updated to assert the new inline response headers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2207,8 +2207,10 @@
|
||||
"Vizitator": "Гость",
|
||||
"Vizite": "Визиты",
|
||||
"Vizual": "Визуально",
|
||||
"Vizualizare PDF": "Просмотр PDF",
|
||||
"Vizualizare dashboard": "Дашборд",
|
||||
"Vizualizează": "Просмотр",
|
||||
"Vizualizează factură (PDF)": "Просмотр счёта (PDF)",
|
||||
"Vizualizări": "Просмотры",
|
||||
"Vopsea sărită": "Скол краски",
|
||||
"Vopsire": "Покраска",
|
||||
|
||||
Reference in New Issue
Block a user