ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::ReportDownloadChoice < ApplicationHelper::Button::Basic
  def disabled?
    !MiqReportResult.find(@report_result_id).try(:miq_report_result_details).try(:exists?)
  end
end