app/presenters/tree_builder_storage_pod.rb
# Get root nodes count/array for explorer tree
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
def x_get_tree_roots(count_only, _options)
    items = EmsFolder.where(:type => 'StorageCluster')
    if count_only
      items.size
    else
      items.map do |item|
        {
          :id            => item[:id],
          :tree          => "dsc_tree",
          :text          => item[:name],
          :icon          => "pficon pficon-folder-close",
          :tip           => item[:description],
          :load_children => true
        }
      end
    end
  end
def x_get_tree_roots ( count_only , _options ) items = EmsFolder . where ( :type => 'StorageCluster' ) if count_only items . size else items . map do | item | { :id => item [ :id ] , :tree => "dsc_tree" , :text => item [ :name ] , :icon => "pficon pficon-folder-close" , :tip => item [ :description ] , :load_children => true } end end end
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
count_only
<not_specific>
_options
<not_specific>