Skip to content

Commit

Permalink
Set gtl buttons for automation manager when refreshed from hash
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed May 24, 2017
1 parent 7662fd9 commit ef57ada
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/application_helper/toolbar_chooser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def x_view_toolbar_filename
@report ? "report_view_tb" : nil
elsif @layout == 'provider_foreman'
@showtype == 'main' ? "x_summary_view_tb" : "x_gtl_view_tb"
elsif @layout == 'automation_manager'
@record.try(:kind_of?, ManageIQ::Providers::AutomationManager::InventoryRootGroup) && @sb[:active_tab] == 'summary' ? "x_summary_view_tb" : "x_gtl_view_tb"
else
nil
end
Expand Down

0 comments on commit ef57ada

Please sign in to comment.