mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +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',
|
'name_lower',
|
||||||
fn(EinundzwanzigPleb $model)
|
fn(EinundzwanzigPleb $model)
|
||||||
=> strtolower(
|
=> 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')
|
Column::make('Avatar', 'avatar')
|
||||||
->visibleInExport(visible: false),
|
->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')
|
Column::make('Npub', 'npub')
|
||||||
->visibleInExport(visible: false)
|
->visibleInExport(visible: false)
|
||||||
->sortable(),
|
->sortable(),
|
||||||
@@ -165,6 +149,22 @@ final class EinundzwanzigPlebTable extends PowerGridComponent
|
|||||||
|
|
||||||
Column::action('Action')
|
Column::action('Action')
|
||||||
->visibleInExport(visible: false),
|
->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