Skip to content

Commit

Permalink
Change literal of button when budget is voted (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
verarojman authored and leio10 committed Jul 22, 2021
1 parent 7e43fe4 commit bf0bc98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ ca:
if_change_opinion: Si has canviat d'opinió, pots
my_budgets: Els meus pressupostos
progress: Finalitza la votació
show: Veure més
show: Veure projectes
vote: Vota
voted_on: Has votat a %{links}
limit_announcement:
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 @@ -122,7 +122,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
2 changes: 1 addition & 1 deletion decidim-budgets/config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ es:
if_change_opinion: Si has cambiado de opinión, puedes
my_budgets: Mis presupuestos
progress: Finaliza la votación
show: Ver más
show: Ver proyectos
vote: Vota
voted_on: Has votado en %{links}
limit_announcement:
Expand Down

0 comments on commit bf0bc98

Please sign in to comment.