#9 emit folderClick event in proper place

This commit is contained in:
Denys Vuika 2016-05-13 16:24:06 +01:00
parent 73cc163b9d
commit b237f92c7d

View File

@ -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)