diff --git a/app/assets/javascripts/components/physical_infrastructures/physical-server-toolbar.js b/app/assets/javascripts/components/physical_infrastructures/physical-server-toolbar.js index e7ce19e58cbf..6e60832d8207 100644 --- a/app/assets/javascripts/components/physical_infrastructures/physical-server-toolbar.js +++ b/app/assets/javascripts/components/physical_infrastructures/physical-server-toolbar.js @@ -39,9 +39,9 @@ function physicalServerToolbarController(API, miqService) { // miqService.miqFlashSaved(); if (toolbar.servers.length > 1) { - miqService.miqFlash('success', sprintf(__('Requested Server state %s for the selected servers'), toolbar.action)); + miqService.miqFlash('success', sprintf(__('Requested Server %s for the selected servers'), toolbar.action)); } else { - miqService.miqFlash('success', sprintf(__('Requested Server state %s for the selected server'), toolbar.action)); + miqService.miqFlash('success', sprintf(__('Requested Server %s for the selected server'), toolbar.action)); } } } diff --git a/app/helpers/application_helper/toolbar/physical_server_center.rb b/app/helpers/application_helper/toolbar/physical_server_center.rb index 1bd5b90dfaef..966c584849ff 100644 --- a/app/helpers/application_helper/toolbar/physical_server_center.rb +++ b/app/helpers/application_helper/toolbar/physical_server_center.rb @@ -13,9 +13,11 @@ class ApplicationHelper::Toolbar::PhysicalServerCenter < ApplicationHelper::Tool 'fa fa-refresh fa-lg', N_('Refresh relationships and power states for all items related to the selected Physical Servers'), N_('Refresh Relationships and Power States'), - :url_parms => "main_div", - :send_checked => true, - :confirm => N_("Refresh relationships and power states for all items related to the selected Physical Servers?"), + :image => "refresh", + :data => {'function' => 'sendDataWithRx', + 'function-data' => '{"type": "refresh", "controller": "physicalServerToolbarController"}'}, + :confirm => N_("Refresh relationships and power states for all items related to the selected Physical Servers?"), + :options => {:feature => :refresh} ), button( :physical_server_delete, diff --git a/app/helpers/application_helper/toolbar/physical_servers_center.rb b/app/helpers/application_helper/toolbar/physical_servers_center.rb index f8b4004ee45c..063ec84311a3 100644 --- a/app/helpers/application_helper/toolbar/physical_servers_center.rb +++ b/app/helpers/application_helper/toolbar/physical_servers_center.rb @@ -13,11 +13,13 @@ class ApplicationHelper::Toolbar::PhysicalServersCenter < ApplicationHelper::Too 'fa fa-refresh fa-lg', N_('Refresh relationships and power states for all items related to the selected Physical Servers'), N_('Refresh Relationships and Power States'), - :url_parms => "main_div", - :send_checked => true, - :confirm => N_("Refresh relationships and power states for all items related to the selected Physical Servers?"), - :enabled => false, - :onwhen => "1+" + :image => "refresh", + :data => {'function' => 'sendDataWithRx', + 'function-data' => '{"type": "refresh", "controller": "physicalServerToolbarController"}'}, + :confirm => N_("Refresh relationships and power states for all items related to the selected Physical Servers?"), + :enabled => false, + :onwhen => "1+", + :options => {:feature => :refresh} ), button( :physical_server_delete,