Skip to content

Commit

Permalink
Reload button should use the current @display
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Nov 9, 2017
1 parent 598426d commit 8107a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/ansible_repository_controller.rb
Expand Up @@ -40,7 +40,7 @@ def button
page.replace("gtl_div", :partial => "layouts/gtl")
end
elsif params[:pressed] == 'ansible_repository_reload'
@display = 'summary_only'
params[:display] = @display if @display
show
render :update do |page|
page << javascript_prologue
Expand Down
Expand Up @@ -5,7 +5,7 @@ class ApplicationHelper::Toolbar::AnsibleRepositoryCenter < ApplicationHelper::T
'fa fa-repeat fa-lg',
N_('Reload the current display'),
N_('Reload'),
:url_parms => "main_div",
:url_parms => ":display => @display",
:send_checked => true,
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck),
])
Expand Down

0 comments on commit 8107a00

Please sign in to comment.