Skip to content

Commit

Permalink
fix project status
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 16, 2023
1 parent cfa8b0b commit 322a6cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion database/factories/OrganizationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function configure(): static

$projects = Project::factory()
->for($organization)
->count(1)
->count(10)
->hasAttached(
Volunteer::factory()
->count(17),
Expand Down
2 changes: 1 addition & 1 deletion lang/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
"project_ends": "Se incheie in",
"project_ending_soon": "Se încheie curând",
"project_starting_soon": "Se deschide in curând",
"project_active": "Proiect activ",
"project_active": "Proiect deschis",
"days": "zile",
"donate_to_project": "Donează către proiectul",
"donate_form_intro": "Completează datele de mai jos pentru a face donația",
Expand Down
7 changes: 5 additions & 2 deletions resources/js/Components/cards/ProjectCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
/>
<ProjectTag v-else-if="project.is_draft" :label="$t('project_draft')" />

<ProjectTag v-else-if="!project.is_active" :label="$t('project_closed')" />
<ProjectTag
v-else-if="project.is_active && project.is_starting_soon"
v-else-if="project.is_starting_soon"
:label="$t('project_starting_soon')"
icon="clock"
/>
Expand All @@ -37,6 +36,10 @@
:label="$t('project_active')"
icon="clock"
/>
<ProjectTag v-else-if="!project.is_active" :label="$t('project_closed')" />




<!-- <div v-if="project.is_active && project.championship" class="flex flex-wrap items-center gap-1">-->
<!-- <ProjectTag-->
Expand Down

0 comments on commit 322a6cf

Please sign in to comment.