(currentNode *tview.TreeNode)
| 70 | } |
| 71 | |
| 72 | func reloadSearchNode(currentNode *tview.TreeNode) { |
| 73 | baseDN := currentNode.GetReference().(string) |
| 74 | |
| 75 | updateLog("Reloading node "+baseDN, "yellow") |
| 76 | reloadSearchAttrsPanel(currentNode, false) |
| 77 | selectAnchoredAttribute(searchAttrsPanel) |
| 78 | |
| 79 | updatedEntry := searchCache.entries[baseDN] |
| 80 | entryName := getNodeName(updatedEntry) |
| 81 | |
| 82 | if Colors { |
| 83 | color, _ := GetEntryColor(updatedEntry) |
| 84 | currentNode.SetColor(color) |
| 85 | } |
| 86 | |
| 87 | currentNode.SetText(entryName) |
| 88 | |
| 89 | // TODO: |
| 90 | // Maybe there should be a separate option to also reload the children of the node |
| 91 | |
| 92 | updateLog("Node "+baseDN+" reloaded", "green") |
| 93 | } |
| 94 | |
| 95 | func updateSearchHistoryPanel() { |
| 96 | searchHistoryPanel.Clear() |
no test coverage detected