🎨 fix(association): update condition to check association status for meetup button visibility

This commit is contained in:
fsociety
2024-10-25 13:14:03 +02:00
parent c7c744d626
commit 3936165a0e

View File

@@ -96,7 +96,7 @@ $delete = function ($id) {
</form>
<!-- Add meetup button -->
@if($currentPleb && $currentPleb->status > 2)
@if($currentPleb && $currentPleb->association_status->value > 2)
<x-button :href="route('association.projectSupport.create')" icon="plus"
label="Projekt einreichen"/>
@endif
@@ -199,7 +199,7 @@ $delete = function ($id) {
:href="route('association.projectSupport.edit', ['projectProposal' => $project])"
label="Editieren"/>
@endif
@if($currentPleb && $currentPleb->status > 2)
@if($currentPleb && $currentPleb->association_status->value > 2)
<x-button
icon="folder-open"
xs