app/helpers/application_helper/button/availability_zone_performance.rb
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