projects
/
working
/
Evergreen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7369e80
)
tree
author
Jason Etheridge
<jason@EquinoxOLI.org>
Mon, 1 May 2023 09:46:31 +0000
(
05:46
-0400)
committer
Jason Etheridge
<phasefx@gmail.com>
Thu, 25 May 2023 16:45:32 +0000
(12:45 -0400)
Open-ILS/src/eg2/src/app/share/tree/tree.ts
patch
|
blob
|
history
diff --git
a/Open-ILS/src/eg2/src/app/share/tree/tree.ts
b/Open-ILS/src/eg2/src/app/share/tree/tree.ts
index
6d72d30
..
047e92f
100644
(file)
--- a/
Open-ILS/src/eg2/src/app/share/tree/tree.ts
+++ b/
Open-ILS/src/eg2/src/app/share/tree/tree.ts
@@
-91,6
+91,17
@@
export class Tree {
}
}
+ findNodesByFieldAndValue(field: string, value: any): TreeNode[] {
+ const list = this.nodeList();
+ let found = [];
+ for (let idx = 0; idx < list.length; idx++) {
+ if (list[idx][field] === value) {
+ found.push( list[idx] );
+ }
+ }
+ return found;
+ }
+
findParentNode(node: TreeNode) {
const list = this.nodeList();
for (let idx = 0; idx < list.length; idx++) {