ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
C
71%
class ApplicationHelper::Button::MiqAeDomainLock < ApplicationHelper::Button::MiqAeDomain
  needs :@record

  def disabled?
    @error_message = _('Domain is Locked.') if super
    @error_message.present?
  end

  def visible?
    super || @record.lockable?
  end
end