mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 14:35:49 +01:00
Forbid hiding of the columns with no label on datatables, as these are difficult to unhide again
This commit is contained in:
@@ -79,6 +79,7 @@ final class AttachmentDataTable implements DataTableTypeInterface
|
||||
{
|
||||
$dataTable->add('picture', TextColumn::class, [
|
||||
'label' => '',
|
||||
'className' => 'no-colvis',
|
||||
'render' => function ($value, Attachment $context) {
|
||||
if ($context->isPicture()
|
||||
&& !$context->isExternal()
|
||||
|
||||
Reference in New Issue
Block a user