mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
added functionality to view a previous version (#5913)
This commit is contained in:
@@ -26,8 +26,12 @@ export class PreviewService {
|
||||
|
||||
constructor(private router: Router) {}
|
||||
|
||||
showResource(resourceId): void {
|
||||
this.router.navigate([{ outlets: { overlay: ['files', resourceId, 'view'] } }]);
|
||||
showResource(resourceId, versionId?): void {
|
||||
if (versionId) {
|
||||
this.router.navigate([{outlets: {overlay: ['files', resourceId, versionId, 'view']}}]);
|
||||
} else {
|
||||
this.router.navigate([{outlets: {overlay: ['files', resourceId, 'view']}}]);
|
||||
}
|
||||
}
|
||||
|
||||
showBlob(name: string, content: Blob): void {
|
||||
|
Reference in New Issue
Block a user