mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Show preview pictures as carousel on part info page.
This commit is contained in:
parent
07dcbc0464
commit
2d4def2836
5 changed files with 96 additions and 14 deletions
|
@ -156,7 +156,7 @@ class PartsDataTable implements DataTableTypeInterface
|
|||
->add('picture', TextColumn::class, [
|
||||
'label' => '',
|
||||
'render' => function ($value, Part $context) {
|
||||
$preview_attachment = $this->previewGenerator->previewAttachment($context);
|
||||
$preview_attachment = $this->previewGenerator->getTablePreviewAttachment($context);
|
||||
if ($preview_attachment === null) {
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue