ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::VolumeDetach < ApplicationHelper::Button::Basic
  def disabled?
    if !@record.supports?(:detach)
      @error_message = @record.unsupported_reason(:detach)
    end
    @error_message.present?
  end
end