Skip to content

Commit

Permalink
Remove to_json from toolbar data as it's not needed
Browse files Browse the repository at this point in the history
After ManageIQ/manageiq-ui-classic#5997 `to_json` is not needed and will break the data format.

Related to ManageIQ/manageiq-ui-classic#6289 fix
  • Loading branch information
ZitaNemeckova committed Oct 10, 2019
1 parent c11de4a commit 34354e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class EmsPhysicalInfraCenter < ::ApplicationHelper::Toolbar::Override
'function-data' => {:controller => 'provider_dialogs', # this one is required
:button => :provision_apply_pattern,
:modal_title => N_('Apply Config Pattern'),
:component_name => 'ApplyConfigPatternFormProvider'}.to_json
:component_name => 'ApplyConfigPatternFormProvider'}
},
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck
),
Expand All @@ -36,7 +36,7 @@ class EmsPhysicalInfraCenter < ::ApplicationHelper::Toolbar::Override
'function-data' => {:controller => 'provider_dialogs', # this one is required
:button => :provision_firmware_update,
:modal_title => N_('Firmware Update'),
:component_name => 'FirmwareUpdateFormProvider'}.to_json
:component_name => 'FirmwareUpdateFormProvider'}
},
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck
)
Expand Down

0 comments on commit 34354e1

Please sign in to comment.