diff --git a/src/app/tree/tree.component.html b/src/app/tree/tree.component.html
index c8cd4d0..a668666 100644
--- a/src/app/tree/tree.component.html
+++ b/src/app/tree/tree.component.html
@@ -1,5 +1,5 @@
-
+
diff --git a/src/app/tree/tree.component.ts b/src/app/tree/tree.component.ts
index fb6a84b..bf7a665 100644
--- a/src/app/tree/tree.component.ts
+++ b/src/app/tree/tree.component.ts
@@ -11,45 +11,22 @@ import {NodeService} from '../node.service';
export class TreeComponent implements OnInit {
@ViewChild('expandingTree', {static: false})
expandingTree: Tree;
- filesTree10: TreeNode[];
+ filesTree: TreeNode[];
constructor(private nodeService: NodeService, private messageService: MessageService) { }
ngOnInit() {
- this.nodeService.getFiles().then(files => this.filesTree10 = files);
+ this.nodeService.getFiles().then(files => this.filesTree = files);
}
- // nodeSelect(event) {
- // this.messageService.add({severity: 'info', summary: 'Node Selected', detail: event.node.label});
- // }
- //
- // nodeUnselect(event) {
- // this.messageService.add({severity: 'info', summary: 'Node Unselected', detail: event.node.label});
- // }
- //
- // nodeExpandMessage(event) {
- // this.messageService.add({severity: 'info', summary: 'Node Expanded', detail: event.node.label});
- // }
- //
- // nodeExpand(event) {
- // if(event.node) {
- // // in a real application, make a call to a remote url to load children of the current node and add the new nodes as children
- // this.nodeService.getLazyFiles().then(nodes => event.node.children = nodes);
- // }
- // }
- //
- // viewFile(file: TreeNode) {
- // this.messageService.add({severity: 'info', summary: 'Node Selected with Right Click', detail: file.label});
- // }
-
expandAll(){
- this.filesTree10.forEach( node => {
+ this.filesTree.forEach( node => {
this.expandRecursive(node, true);
} );
}
collapseAll(){
- this.filesTree10.forEach( node => {
+ this.filesTree.forEach( node => {
this.expandRecursive(node, false);
} );
}