From bee057bc4bb2c1bfdc0bf17622a1311aa75f10ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 11 Sep 2022 00:46:12 +0200 Subject: [PATCH] Forbid hiding of the columns with no label on datatables, as these are difficult to unhide again --- src/DataTables/AttachmentDataTable.php | 1 + src/DataTables/LogDataTable.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/DataTables/AttachmentDataTable.php b/src/DataTables/AttachmentDataTable.php index dc6b1083..df373ee6 100644 --- a/src/DataTables/AttachmentDataTable.php +++ b/src/DataTables/AttachmentDataTable.php @@ -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() diff --git a/src/DataTables/LogDataTable.php b/src/DataTables/LogDataTable.php index 3b91c5f2..5e68f5d4 100644 --- a/src/DataTables/LogDataTable.php +++ b/src/DataTables/LogDataTable.php @@ -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: