ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/application_helper/button/vm_perf.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::VmPerf < ApplicationHelper::Button::Basic
  needs :@record

  def disabled?
    @error_message = _('No Capacity & Utilization data has been collected for this VM') unless @record.has_perf_data?
    @error_message.present?
  end
end