ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = _("No Compliance Policies assigned to this Host") unless @record.has_compliance_policies?
    @error_message.present?
  end
end