[ADF-2723] preventing document list to restart always from -my- folder (#3200)

* [ADF-2723] preventing document list to restart always from -my- folder

* [ADF-2723] fixed condition

* [ADF-2723] removed commented line
This commit is contained in:
Vito
2018-04-16 21:03:03 +01:00
committed by Eugenio Romano
parent 460e33ccdb
commit a6b8e16391
3 changed files with 21 additions and 4 deletions

View File

@@ -373,7 +373,9 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
this.currentFolderId = changes.folderNode.currentValue.id;
this.resetNewFolderPagination();
this.loadFolder();
} else if (changes.currentFolderId && changes.currentFolderId.currentValue) {
} else if (changes.currentFolderId &&
changes.currentFolderId.currentValue &&
changes.currentFolderId.currentValue !== changes.currentFolderId.previousValue) {
this.resetNewFolderPagination();
this.loadFolder();
} else if (this.data) {
@@ -740,6 +742,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
this.currentFolderId = nodeId;
this.resetNewFolderPagination();
this.loadFolder();
this.folderChange.emit(new NodeEntryEvent({id: nodeId}));
}
private resetNewFolderPagination() {