📝 feat(association): enhance condition to display button based on currentPleb and board configuration

This commit is contained in:
fsociety
2024-10-25 12:15:04 +02:00
parent 89e50269c5
commit f234038089

View File

@@ -180,7 +180,10 @@ $delete = function ($id) {
@endif @endif
</div> </div>
<div class="flex flex-col sm:flex-row justify-between items-center mt-3 space-y-2 sm:space-y-0"> <div class="flex flex-col sm:flex-row justify-between items-center mt-3 space-y-2 sm:space-y-0">
@if($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id) @if(
($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id)
|| ($currentPleb && in_array(config('einundzwanzig.config.current_board'), $currentPleb->npub, true))
)
<x-button <x-button
icon="trash" icon="trash"
xs xs