#9 reload document list api

This commit is contained in:
Denys Vuika
2016-05-13 15:09:14 +01:00
parent 44dea022d8
commit 7f0f4707cd
@@ -222,7 +222,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
* @param path Node path
*/
displayFolderContent(path) {
if (path !== null) {
if (path !== null && path !== this.currentFolderPath) {
this.folderClick.emit({
value: path
});
@@ -236,6 +236,12 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
}
}
reload() {
if (this.currentFolderPath) {
this.displayFolderContent(this.currentFolderPath);
}
}
/**
* Gets a path for a given node.
* @param node