ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::StoragePerf < ApplicationHelper::Button::Basic
  needs :@record

  def disabled?
    unless @record.has_perf_data?
      @error_message = _('No Capacity & Utilization data has been collected for this Datastore')
    end
    @error_message.present?
  end
end