Skip to content

Commit

Permalink
Only Hosts under Cluster have no checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed May 12, 2017
1 parent 83e21a2 commit ea44789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/tree_builder_belongs_to_hac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def override(node, object, _pid, options)
if [ExtManagementSystem, EmsCluster, Datacenter, EmsFolder, ResourcePool].any? { |klass| object.kind_of?(klass) }
node[:select] = options.key?(:selected) && options[:selected].include?("#{object.class.name}_#{object[:id]}")
end
node[:hideCheckbox] = true if object.kind_of?(Host)
node[:hideCheckbox] = true if object.kind_of?(Host) && object.ems_cluster_id.present?
node[:cfmeNoClick] = true
node[:checkable] = options[:checkable_checkboxes] if options.key?(:checkable_checkboxes)
end
Expand Down

0 comments on commit ea44789

Please sign in to comment.