ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
15 mins
Test Coverage
A
100%
class ApplicationHelper::Toolbar::XVmPerformance < ApplicationHelper::Toolbar::Basic
  button_group('perf_tasks', [
    button(
      :vm_perf_refresh,
      'fa fa-refresh fa-lg',
      N_('Initiate refresh of recent C&U data'),
      nil,
      :confirm => N_("Initiate refresh of recent C&U data?"),
      :klass => ApplicationHelper::Button::PerfRefresh),
    button(
      :vm_perf_reload,
      'fa fa-repeat fa-lg',
      N_('Reload the charts from the most recent C&U data'),
      nil,
      :keepSpinner => true,
      :klass       => ApplicationHelper::Button::PerfRefresh),
  ])
end