ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
class ApplicationHelper::Button::ButtonAdd < ApplicationHelper::Button::ButtonWithoutRbacCheck
  needs :@edit

  def visible?
    !@edit[:rec_id]
  end

  def disabled?
    !@changed
  end
end