ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = _("Default actions can not be changed.") if @record.action_type == "default"
    @error_message.present?
  end
end