mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-13 05:26:47 +00:00
📝 feat(association): enhance condition to display button based on currentPleb and board configuration
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user