Skip to content

Commit

Permalink
Toolbar: pass keepSpinner to the toolbar.
Browse files Browse the repository at this point in the history
The hard-coded exceptions for keeping the spinner up when buttons are
pressed where removed in the React rewrite. The behavior is now driven
by the keepSpinner option on a button. However this option was not
passed from the toolbar definition to the component. Fixing that now.

Fixes: ManageIQ#6295
  • Loading branch information
martinpovolny committed Oct 22, 2019
1 parent b360191 commit 9b6518e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper/toolbar_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def apply_common_props(button, input)
end
end
button[:url_parms] = update_url_parms(safer_eval(input[:url_parms])) if input[:url_parms].present?
button[:keepSpinner] = input[:keepSpinner] if input.key?(:keepSpinner)

if input[:popup] # special behavior: button opens window_url in a new window
button[:popup] = true
Expand Down

0 comments on commit 9b6518e

Please sign in to comment.