ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = _('Sample Analysis Profile cannot be deleted') if @record.read_only
    @error_message.present?
  end
end