mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
#9 emit folderClick event in proper place
This commit is contained in:
parent
73cc163b9d
commit
b237f92c7d
@ -154,6 +154,11 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
|
||||
if (this.navigate && item) {
|
||||
if (item.entry.isFolder) {
|
||||
let path = this.getNodePath(item);
|
||||
|
||||
this.folderClick.emit({
|
||||
value: path
|
||||
});
|
||||
|
||||
this.route.push({
|
||||
name: item.entry.name,
|
||||
path: path
|
||||
@ -223,9 +228,6 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
|
||||
*/
|
||||
displayFolderContent(path) {
|
||||
if (path !== null) {
|
||||
this.folderClick.emit({
|
||||
value: path
|
||||
});
|
||||
this.currentFolderPath = path;
|
||||
this._alfrescoService
|
||||
.getFolder(path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user