Skip to content

Commit

Permalink
Added 'Pause/Resume Provider' buttons to Physical Infrastructure Prov…
Browse files Browse the repository at this point in the history
…iders toolbar
  • Loading branch information
romanblanco committed May 29, 2018
1 parent 04eab55 commit 410cc8d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ class ApplicationHelper::Toolbar::EmsPhysicalInfraCenter < ApplicationHelper::To
'pficon pficon-edit fa-lg',
t = N_('Edit this Infrastructure Provider'),
t),
button(
:ems_physical_infra_resume,
'pficon pficon-trend-up fa-lg',
t = N_('Resume this Infrastructure Provider'),
t,
:confirm => N_("Resume this Infrastructure Provider?"),
:enabled => proc { !@record.enabled? },
:url_parms => "main_div"),
button(
:ems_physical_infra_pause,
'pficon pficon-trend-down fa-lg',
t = N_('Pause this Infrastructure Provider'),
t,
:confirm => N_("Warning: While this provider is paused no data will be collected from it. " \
"This may cause gaps in inventory, metrics and events!"),
:enabled => proc { @record.enabled? },
:url_parms => "main_div"),
button(
:ems_physical_infra_delete,
'pficon pficon-delete fa-lg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ class ApplicationHelper::Toolbar::EmsPhysicalInfrasCenter < ApplicationHelper::T
:send_checked => true,
:enabled => false,
:onwhen => "1"),
button(
:ems_physical_infra_resume,
'pficon pficon-trend-up fa-lg',
t = N_('Resume selected Infrastructure Providers'),
t,
:confirm => N_("Resume these Infrastructure Providers?"),
:enabled => false,
:url_parms => "main_div",
:send_checked => true,
:onwhen => "1+"),
button(
:ems_physical_infra_pause,
'pficon pficon-trend-down fa-lg',
t = N_('Pause selected Infrastructure Providers'),
t,
:confirm => N_("Warning: While these providers are paused no data will be collected from them. " \
"This may cause gaps in inventory, metrics and events!"),
:enabled => false,
:url_parms => "main_div",
:send_checked => true,
:onwhen => "1+"),
button(
:ems_physical_infra_delete,
'pficon pficon-delete fa-lg',
Expand Down

0 comments on commit 410cc8d

Please sign in to comment.