ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = _('Orchestration Stack is already retired') if @record.retired
    @error_message.present?
  end
end