Skip to content

Commit

Permalink
Only show button in catalogue number assignment state
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Apr 6, 2017
1 parent f0e7538 commit b7c4998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/WineController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function index(Competition $competition) {
'edit_chosen' => $competition->competitionState->id === CompetitionState::STATE_CHOOSE,
'show_complete_choosing' => $competition->competitionState->id === CompetitionState::STATE_CHOOSE,
'show_import_catalogue_numbers' => $competition->competitionState->id === CompetitionState::STATE_CATALOGUE_NUMBERS,
'show_complete_catalogue_numbers' => $competition->competitionState->id >= CompetitionState::STATE_CATALOGUE_NUMBERS && $this->tastingCatalogueHandler->allWinesHaveBeenAssigned($competition),
'show_complete_catalogue_numbers' => $competition->competitionState->id === CompetitionState::STATE_CATALOGUE_NUMBERS && $this->tastingCatalogueHandler->allWinesHaveBeenAssigned($competition),
'export_flaws' => $competition->competitionState->id >= CompetitionState::STATE_KDB,
'show_enrollment_pdf_export' => $competition->competitionState->is(CompetitionState::STATE_ENROLLMENT),
]);
Expand Down

0 comments on commit b7c4998

Please sign in to comment.