ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/application_helper/toolbar/optimizations_center.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Toolbar::OptimizationsCenter < ApplicationHelper::Toolbar::Basic
  button_group('optimizations', [
    button(
      :refresh,
      'fa fa-refresh fa-lg',
      N_('Refresh the list'),
      nil,
      :data  => {'function'      => 'sendDataWithRx',
                 'function-data' => {'controller' => 'OptimizationController',
                                     'action'     => 'refresh'}},
      :klass => ApplicationHelper::Button::ButtonWithoutRbacCheck),
  ])
end