[ADF-4400] Versioning - restore does not update the document list (#4605)

* emit NodeInfo data on restore

* update row data and cache on node update event

* tests

* fix metadatat e2e
This commit is contained in:
Cilibiu Bogdan
2019-04-16 12:59:37 +03:00
committed by Eugenio Romano
parent 74e918d916
commit 36ce9bce0d
5 changed files with 130 additions and 13 deletions

View File

@@ -82,7 +82,13 @@ export class VersionListComponent implements OnChanges {
if (this.canUpdate()) {
this.versionsApi
.revertVersion(this.node.id, versionId, { majorVersion: true, comment: '' })
.then(() => this.onVersionRestored(this.node));
.then(() =>
this.alfrescoApi.nodesApi.getNodeInfo(
this.node.id,
{ include: ['permissions', 'path', 'isFavorite', 'allowableOperations'] }
)
)
.then((node) => this.onVersionRestored(node));
}
}