ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = _('Default Tenant can not be deleted') if @record.parent.nil?
    @error_message.present?
  end
end