Fixes #voodoorai2000 comments
Fixes some comments from #voodoorai2000 for the PR to consul
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user