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 a64eec4 commit a995469
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ToolbarOverrides::PhysicalServerCenter \
:button => :physical_server_provision,
:modal_title => N_("Provision Physical Server"),
:component_name => "RedfishServerProvisionDialog",
}.to_json,
},
}
),
button(
Expand All @@ -40,7 +40,7 @@ class ToolbarOverrides::PhysicalServerCenter \
:button => :physical_server_firmware_update,
:modal_title => N_("Update Physical Server Firmware"),
:component_name => "RedfishServerFirmwareUpdateDialog",
}.to_json,
},
}
),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ToolbarOverrides::PhysicalServersCenter \
:button => :physical_server_provision,
:modal_title => N_("Provision Selected Physical Servers"),
:component_name => "RedfishServerProvisionDialog",
}.to_json,
},
},
:enabled => false,
:onwhen => "1+"
Expand All @@ -42,7 +42,7 @@ class ToolbarOverrides::PhysicalServersCenter \
:button => :physical_server_firmware_update,
:modal_title => N_("Update Physical Servers' Firmware"),
:component_name => "RedfishServerFirmwareUpdateDialog",
}.to_json,
},
},
:enabled => false,
:onwhen => "1+"
Expand Down

0 comments on commit a995469

Please sign in to comment.