From 8c0c3cab3e47518192e214f1520827525f641fdb Mon Sep 17 00:00:00 2001 From: fsociety Date: Thu, 13 Feb 2025 13:04:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20refactor(table):=20update=20emai?= =?UTF-8?q?l=20and=20status=20columns=20visibility=20in=20EinundzwanzigPle?= =?UTF-8?q?bTable=20for=20export=20functionality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Livewire/EinundzwanzigPlebTable.php | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/app/Livewire/EinundzwanzigPlebTable.php b/app/Livewire/EinundzwanzigPlebTable.php index 92dc123..f2896b8 100644 --- a/app/Livewire/EinundzwanzigPlebTable.php +++ b/app/Livewire/EinundzwanzigPlebTable.php @@ -117,7 +117,7 @@ final class EinundzwanzigPlebTable extends PowerGridComponent 'name_lower', fn(EinundzwanzigPleb $model) => strtolower( - e($model->profile?->name ?? $model->profile?->display_name ?? ''), + e($model->profile?->name ?: $model->profile?->display_name ?? ''), ), ); } @@ -128,22 +128,6 @@ final class EinundzwanzigPlebTable extends PowerGridComponent Column::make('Avatar', 'avatar') ->visibleInExport(visible: false), - Column::make('Email', 'email') - ->hidden() - ->visibleInExport(visible: true), - - Column::make('Status', 'association_status_name') - ->hidden() - ->visibleInExport(visible: true), - - Column::make('Npub', 'npub_export') - ->hidden() - ->visibleInExport(visible: true), - - Column::make('Bezahlt', 'paid_export') - ->hidden() - ->visibleInExport(visible: true), - Column::make('Npub', 'npub') ->visibleInExport(visible: false) ->sortable(), @@ -165,6 +149,22 @@ final class EinundzwanzigPlebTable extends PowerGridComponent Column::action('Action') ->visibleInExport(visible: false), + + Column::make('Email', 'email') + ->hidden() + ->visibleInExport(visible: true), + + Column::make('Status', 'association_status_name') + ->hidden() + ->visibleInExport(visible: true), + + Column::make('Npub', 'npub_export') + ->hidden() + ->visibleInExport(visible: true), + + Column::make('Bezahlt', 'paid_export') + ->hidden() + ->visibleInExport(visible: true), ]; }