Skip to content

Commit

Permalink
fix is stating soon
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Dec 13, 2023
1 parent 45b7b8c commit 6883025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Resources/Project/ShowProjectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function toArray(Request $request): array
];
})->toArray(),
'is_active' => $this->is_active,
'is_starting_soon' => $this->isStartingSoon(),
'external_links' => collect($this->external_links)->map(function (array $link) {
$link['source'] = parse_url($link['url'], \PHP_URL_HOST);

Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Public/Projects/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<div class="flex flex-col w-full gap-4 sm:flex-row">
<!-- Donate modal -->
<DonateModal
v-if="project.is_active && !project.staring_soon"
v-if="project.is_active && !project.is_starting_soon"
triggerModalClasses="bg-primary-500 w-full sm:w-auto hover:bg-primary-400 text-white focus-visible:outline-primary-500 rounded-md px-3.5 py-2.5 text-sm font-semibold shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
:triggerModalText="$t('donate_btn')"
:data="project"
Expand Down

0 comments on commit 6883025

Please sign in to comment.