Revision 930772e2
Added by Ohad Levy about 11 years ago
- ID 930772e27b0c702835f328a7c12e73e0f5f9dbec
app/helpers/bmc_helper.rb | ||
---|---|---|
|
||
def power_actions
|
||
action_buttons(
|
||
(PowerManager::SUPPORTED_ACTIONS - [:state]).map do |action|
|
||
(PowerManager::SUPPORTED_ACTIONS - ['state']).map do |action|
|
||
display_link_if_authorized(_(action.to_s.capitalize), { :action => "power", :id => @host, :power_action => action},
|
||
:confirm => _('Are you sure?'), :method => :put)
|
||
end
|
Also available in: Unified diff
fixes #2481 - invalid state in BMC power dropdown