mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 05:55:16 +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()
|
||||
|
||||
@@ -121,6 +121,7 @@ class LogDataTable implements DataTableTypeInterface
|
||||
|
||||
$dataTable->add('symbol', TextColumn::class, [
|
||||
'label' => '',
|
||||
'className' => 'no-colvis',
|
||||
'render' => static function ($value, AbstractLogEntry $context) {
|
||||
switch ($context->getLevelString()) {
|
||||
case LogLevel::DEBUG:
|
||||
|
||||
Reference in New Issue
Block a user