mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
added functionality to view a previous version (#5913)
This commit is contained in:
@@ -75,6 +75,10 @@ export class VersionManagerComponent implements OnInit {
|
||||
@Output()
|
||||
uploadCancel: EventEmitter<boolean> = new EventEmitter<boolean>();
|
||||
|
||||
/** Emitted when viewing a version. */
|
||||
@Output()
|
||||
viewVersion: EventEmitter<string> = new EventEmitter<string>();
|
||||
|
||||
@ViewChild('versionList', { static: true })
|
||||
versionListComponent: VersionListComponent;
|
||||
|
||||
@@ -117,6 +121,10 @@ export class VersionManagerComponent implements OnInit {
|
||||
this.uploadCancel.emit(true);
|
||||
}
|
||||
|
||||
onViewVersion(versionId: string) {
|
||||
this.viewVersion.emit(versionId);
|
||||
}
|
||||
|
||||
toggleNewVersion() {
|
||||
this.uploadState = this.uploadState === 'open' ? 'close' : 'open';
|
||||
}
|
||||
|
Reference in New Issue
Block a user