Skip to content

Commit

Permalink
Add rejected filter option for environments
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Oct 17, 2024
1 parent 7cc62b0 commit 7614799
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/lib/models/filters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,13 @@ final emptyEnvironmentReviewFilters = FiltersGroup<EnvironmentReview>(
filters: [
Filter<EnvironmentReview>(
name: 'Review status',
extractOption: (te) =>
te.reviewDecision.isEmpty ? 'Undecided' : 'Reviewed',
// extractOption: (te) =>
// te.reviewDecision.isEmpty ? 'Undecided' : 'Reviewed',
extractOption: (er) => switch (er.reviewDecision) {
[] => 'Undecided',
[EnvironmentReviewDecision.rejected] => 'Rejected',
[...] => 'Approved',
},
),
],
);

0 comments on commit 7614799

Please sign in to comment.