Skip to content

Commit

Permalink
Change literal of button when budget is voted
Browse files Browse the repository at this point in the history
  • Loading branch information
verarojman authored and aitorlb committed Jul 30, 2021
1 parent b564ce6 commit 4a5934d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def button_class
end

def button_text
key = if current_workflow.vote_allowed?(budget)
key = if current_workflow.vote_allowed?(budget) && !voted?
progress? ? :progress : :vote
else
:show
Expand Down
2 changes: 1 addition & 1 deletion decidim-budgets/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ en:
if_change_opinion: If you've changed your mind, you can
my_budgets: My budgets
progress: Finish voting
show: Show
show: See projects
vote: Vote
voted_on: You've voted on %{links}
limit_announcement:
Expand Down

0 comments on commit 4a5934d

Please sign in to comment.