ManageIQ/manageiq-ui-classic

View on GitHub
app/presenters/tree_node/custom_button.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module TreeNode
  class CustomButton < Node
    set_attribute(:tooltip) { _("Button: %{button_description}") % {:button_description => @object.description} }
    set_attribute(:color) { @object.options.key?(:button_color) ? @object.options[:button_color] : nil }
  end
end