Skip to content

Commit

Permalink
fix network router config options
Browse files Browse the repository at this point in the history
  • Loading branch information
tzumainn committed Apr 12, 2017
1 parent ff8e3e3 commit 8f6554b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/controllers/ems_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ def button
javascript_redirect :controller => "cloud_volume", :action => "detach", :id => find_checked_items[0]
elsif params[:pressed] == "cloud_volume_edit"
javascript_redirect :controller => "cloud_volume", :action => "edit", :id => find_checked_items[0]
elsif params[:pressed] == "network_router_edit"
javascript_redirect :controller => "network_router", :action => "edit", :id => find_checked_items[0]
elsif params[:pressed] == "network_router_add_interface"
javascript_redirect :controller => "network_router", :action => "add_interface_select", :id => find_checked_items[0]
elsif params[:pressed] == "network_router_remove_interface"
javascript_redirect :controller => "network_router", :action => "remove_interface_select", :id => find_checked_items[0]
elsif params[:pressed].ends_with?("_edit") || ["#{pfx}_miq_request_new", "#{pfx}_clone",
"#{pfx}_migrate", "#{pfx}_publish"].include?(params[:pressed])
render_or_redirect_partial(pfx)
Expand Down

0 comments on commit 8f6554b

Please sign in to comment.