ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
class ApplicationHelper::Button::VolumeClone < ApplicationHelper::Button::Basic
  def disabled?
    if !@record.supports?(:clone)
      @error_message = _("Cloud Volume \"%{name}\" cannot be cloned because %{reason}") % {:name => @record.name, :reason => @record.unsupported_reason(:clone)}
    end
    @error_message.present?
  end
end