Skip to content

Commit

Permalink
Fixed code to render custom buttons toolbar on provider dashboard view
Browse files Browse the repository at this point in the history
Fixed code to render custom buttons toolbar when switching Textual summary to Dashboard view for a selected Provider

https://bugzilla.redhat.com/show_bug.cgi?id=1492361
  • Loading branch information
h-kataria committed Sep 21, 2017
1 parent 218e685 commit 9048817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/mixins/custom_buttons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def custom_toolbar_explorer
end

def custom_toolbar_simple
if @record && @lastaction == "show" && @display == "main"
if @record && %w(show show_dashboard).include?(@lastaction) && %w(dashboard main).include?(@display)
Mixins::CustomButtons::Result.new(:single)
elsif @lastaction == "show_list"
Mixins::CustomButtons::Result.new(:list)
Expand Down

0 comments on commit 9048817

Please sign in to comment.