ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
D
66%
class ApplicationHelper::Button::TimelineDownload < ApplicationHelper::Button::Basic
  def visible?
    @report
  end

  def disabled?
    @error_message = _('Choose a Timeline from the menus on the left.') if @record.nil?
    @error_message.present?
  end
end