mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[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:
committed by
Eugenio Romano
parent
74e918d916
commit
36ce9bce0d
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user