mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
#9 reload document list api
This commit is contained in:
@@ -222,7 +222,7 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
|
|||||||
* @param path Node path
|
* @param path Node path
|
||||||
*/
|
*/
|
||||||
displayFolderContent(path) {
|
displayFolderContent(path) {
|
||||||
if (path !== null) {
|
if (path !== null && path !== this.currentFolderPath) {
|
||||||
this.folderClick.emit({
|
this.folderClick.emit({
|
||||||
value: path
|
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.
|
* Gets a path for a given node.
|
||||||
* @param node
|
* @param node
|
||||||
|
|||||||
Reference in New Issue
Block a user