mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-13 05:26:47 +00:00
🎨 refactor(table): update email and status columns visibility in EinundzwanzigPlebTable for export functionality
This commit is contained in:
@@ -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),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user