ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::AbButtonNew < ApplicationHelper::Button::ButtonNewDiscover
  def visible?
    super && !(@view_context.x_active_tree == :ab_tree &&
      @view_context.x_node.split('_').length == 2 &&
      @view_context.x_node.split('_')[0] == "xx-ab")
  end
end