ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = @selected_zone.message_for_invalid_delete
    @error_message.present?
  end
end