ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::ReloadServerTree < ApplicationHelper::Button::Basic
  include ApplicationHelper::Button::Mixins::ActiveContextMixin

  def visible?
    active_tree?(:diagnostics_tree) && active_tab?(%w[diagnostics_roles_servers diagnostics_servers_roles])
  end
end