ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    if @record.auth_key.present?
      return false
    end
    @error_message = _('Private key download is unavailable for this keypair.')
    @error_message.present?
  end
end