ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
C
75%
class ApplicationHelper::Button::ZoneDeleteServer < ApplicationHelper::Button::Basic
  needs :@record

  def visible?
     @view_context.x_active_tree == :diagnostics_tree &&
       %w[diagnostics_roles_servers diagnostics_servers_roles].include?(@sb[:active_tab]) &&
       @record.class == MiqServer
  end
end