ManageIQ/manageiq-ui-classic

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

Summary

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

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

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