mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1060] [Recent Files] Working copy is incorrectly displayed for a file locked for offline editing (#128)
-moved common code to PageComponent to avoid duplication -used the imageResolver and onNodeSelect on recent files also
This commit is contained in:
@@ -63,7 +63,10 @@ export class RecentFilesComponent extends PageComponent implements OnInit, OnDes
|
||||
}
|
||||
|
||||
onNodeDoubleClick(node: MinimalNodeEntryEntity) {
|
||||
if (node && node.isFile) {
|
||||
if (node && PageComponent.isLockedNode(node)) {
|
||||
event.preventDefault();
|
||||
|
||||
} else if (node && node.isFile) {
|
||||
this.router.navigate(['/preview', node.id]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user