ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
class ApplicationHelper::Button::ChargebackRateRemove < ApplicationHelper::Button::ChargebackRates
  needs :@record

  def disabled?
    @error_message = _('Default Chargeback Rate cannot be removed.') if @record.default?
    @error_message.present?
  end
end