ManageIQ/manageiq-ui-classic

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

Summary

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

  def visible?
    @record.is_scannable?
  end

  def disabled?
    @record.is_scannable_now_error_message unless @record.is_scannable_now?
  end
end