ManageIQ/manageiq-ui-classic

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

Summary

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

  def visible?
    @record.supports?(:smartstate_analysis) && @record.has_proxy?
  end

  def disabled?
    @error_message ||= @record.active_proxy_error_message unless @record.has_active_proxy?
    @error_message.present?
  end
end