Skip to content

Commit

Permalink
Enable manage repository flags for projects
Browse files Browse the repository at this point in the history
Co-authored-by: Ana María Martínez Gómez <ammartinez@suse.de>
  • Loading branch information
DavidKang and Ana06 committed Dec 10, 2018
1 parent 5b466d3 commit 4405a9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/app/controllers/webui/repositories_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def create_flag
@main_object.store
format.html { redirect_to(action: :index, controller: :repositories, project: params[:project], package: params[:package]) }
format.js do
switch_to_webui2 if params[:package].present?
switch_to_webui2
render 'change_flag'
end
else
Expand All @@ -218,7 +218,7 @@ def toggle_flag
@main_object.store
format.html { redirect_to(action: :index, project: params[:project], package: params[:package]) }
format.js do
switch_to_webui2 if params[:package].present?
switch_to_webui2
render 'change_flag'
end
else
Expand All @@ -242,7 +242,7 @@ def remove_flag
@main_object.store
format.html { redirect_to(action: :index, project: params[:project], package: params[:package]) }
format.js do
switch_to_webui2 if params[:package].present?
switch_to_webui2
render 'change_flag'
end
end
Expand Down

0 comments on commit 4405a9e

Please sign in to comment.