Skip to content

Commit

Permalink
Also give warning class to existing drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Aug 2, 2023
1 parent 5f39561 commit 5afb942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/podcast_planner_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def calendar_day_tag(day:, month:, calendar:, &block)
is_new = date_is_in_dates?(day, @planner.dates)
is_existing = date_is_in_dates?(day, @draft_dates)
if is_new && is_existing
cls = ["bg-danger", "text-light"]
cls = ["bg-warning", "bg-danger", "text-light"]
elsif is_new
cls = ["bg-primary", "text-light"]
elsif is_existing
Expand Down

0 comments on commit 5afb942

Please sign in to comment.