mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Forbid hiding of the columns with no label on datatables, as these are difficult to unhide again
This commit is contained in:
parent
4b9a40664b
commit
bee057bc4b
2 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,7 @@ final class AttachmentDataTable implements DataTableTypeInterface
|
||||||
{
|
{
|
||||||
$dataTable->add('picture', TextColumn::class, [
|
$dataTable->add('picture', TextColumn::class, [
|
||||||
'label' => '',
|
'label' => '',
|
||||||
|
'className' => 'no-colvis',
|
||||||
'render' => function ($value, Attachment $context) {
|
'render' => function ($value, Attachment $context) {
|
||||||
if ($context->isPicture()
|
if ($context->isPicture()
|
||||||
&& !$context->isExternal()
|
&& !$context->isExternal()
|
||||||
|
|
|
@ -121,6 +121,7 @@ class LogDataTable implements DataTableTypeInterface
|
||||||
|
|
||||||
$dataTable->add('symbol', TextColumn::class, [
|
$dataTable->add('symbol', TextColumn::class, [
|
||||||
'label' => '',
|
'label' => '',
|
||||||
|
'className' => 'no-colvis',
|
||||||
'render' => static function ($value, AbstractLogEntry $context) {
|
'render' => static function ($value, AbstractLogEntry $context) {
|
||||||
switch ($context->getLevelString()) {
|
switch ($context->getLevelString()) {
|
||||||
case LogLevel::DEBUG:
|
case LogLevel::DEBUG:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue