Fixes #voodoorai2000 comments

Fixes some comments from #voodoorai2000 for the PR to consul
This commit is contained in:
Juan Salvador Pérez García
2018-07-27 16:30:03 +02:00
parent a41ce7a0bd
commit 50f73abb0c
33 changed files with 541 additions and 404 deletions

View File

@@ -37,7 +37,7 @@ class DashboardController < Dashboard::BaseController
if @dashboard_executed_action.save
Dashboard::AdministratorTask.create(source: @dashboard_executed_action)
redirect_to progress_proposal_dashboard_index_path(proposal.to_param), { flash: { info: t('.success') } }
redirect_to progress_proposal_dashboard_index_path(proposal.to_param), { flash: { info: t('dashboard.create_request.success') } }
else
flash.now[:alert] = @dashboard_executed_action.errors.full_messages.join('<br>')
render :new_request
@@ -52,21 +52,6 @@ class DashboardController < Dashboard::BaseController
authorize! :dashboard, proposal
end
def supports
authorize! :dashboard, proposal
render json: ProposalSupportsQuery.for(params)
end
def successful_supports
authorize! :dashboard, proposal
render json: SuccessfulProposalSupportsQuery.for(params)
end
def achievements
authorize! :dashboard, proposal
render json: ProposalAchievementsQuery.for(params)
end
private
def dashboard_action