Skip to content

Commit

Permalink
Merge branch 'main' into create-obs-location
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jun 19, 2024
2 parents 046d888 + bc2ed6f commit 33d08fc
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 146 deletions.
7 changes: 5 additions & 2 deletions app/helpers/namings_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,12 @@ def your_vote_html(naming, vote)
def naming_vote_form(naming, vote, context: "blank")
vote_id = vote&.id
method = vote_id ? :patch : :post
menu = Vote.confidence_menu
can_vote = check_permission(naming)
menu = [Vote.no_opinion] + menu if !can_vote || !vote || vote&.value&.zero?
menu = if !can_vote || !vote || vote&.value&.zero?
Vote.opinion_menu
else
Vote.confidence_menu
end
localizations = {
lose_changes: :show_namings_lose_changes.l.tr("\n", " "),
saving: :show_namings_saving.l
Expand Down

0 comments on commit 33d08fc

Please sign in to comment.