()
| 591 | } |
| 592 | |
| 593 | func (sb *StorageBrowser) jumpTreeBottom() { |
| 594 | root := sb.tree.GetRoot() |
| 595 | if root == nil { |
| 596 | return |
| 597 | } |
| 598 | children := root.GetChildren() |
| 599 | if len(children) == 0 { |
| 600 | return |
| 601 | } |
| 602 | last := children[len(children)-1] |
| 603 | grandChildren := last.GetChildren() |
| 604 | if len(grandChildren) > 0 { |
| 605 | last = grandChildren[len(grandChildren)-1] |
| 606 | } |
| 607 | sb.tree.SetCurrentNode(last) |
| 608 | sb.handleTreeSelection(last) |
| 609 | } |
| 610 | |
| 611 | func cloneAndSortStorageNodes(nodes []*api.Node) []*api.Node { |
| 612 | cloned := make([]*api.Node, 0, len(nodes)) |
no test coverage detected