ManageIQ/manageiq-ui-classic

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

Summary

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

  def visible?
    reports_tree? ? saved_report? : true
  end

  private

  def saved_report?
    %w[saved_reports report_info].include?(@view_context.active_tab)
  end
end