ManageIQ/manageiq-ui-classic

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

Summary

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

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