ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = _('Read Only Domain cannot be edited') if super
    @error_message.present?
  end

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