Skip to content

Commit

Permalink
add support for refreshing physical servers
Browse files Browse the repository at this point in the history
  • Loading branch information
MaysaMacedo committed Nov 27, 2017
1 parent 7089223 commit bd82674
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
Expand Up @@ -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));
}
}
}
Expand Up @@ -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,
Expand Down
Expand Up @@ -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,
Expand Down

0 comments on commit bd82674

Please sign in to comment.