diff --git a/app/cells/decidim/budgets/project_vote_button/show.erb b/app/cells/decidim/budgets/project_vote_button/show.erb index eebd2c1..da0802f 100644 --- a/app/cells/decidim/budgets/project_vote_button/show.erb +++ b/app/cells/decidim/budgets/project_vote_button/show.erb @@ -14,7 +14,11 @@ disabled: vote_button_disabled?, title: vote_button_label do %> <% if resource_added? %> - <%= current_order.score_for(model) %> + <% if model.budget.settings.disable_custom_budgets %> + <%= icon("x", class: "icon--small", aria_label: vote_button_label, role: "img") %> + <% else %> + <%= current_order.score_for(model) %> + <% end %> <% else %> <%= icon("check", class: "icon--small", aria_label: vote_button_label, role: "img") %> <% end %> diff --git a/app/views/decidim/budgets/projects/_budget_confirm.html.erb b/app/views/decidim/budgets/projects/_budget_confirm.html.erb index 8a88e52..818a4ad 100644 --- a/app/views/decidim/budgets/projects/_budget_confirm.html.erb +++ b/app/views/decidim/budgets/projects/_budget_confirm.html.erb @@ -11,9 +11,11 @@