mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-100] FIX - View a previous version (#5915)
* small fix, forgot to add the line when creating the last branch * fixing the wrong parameter passing * small fix, forgot to add the line when creating the last branch * fixing the wrong parameter passing * ACA-100: Exclude preview of a previous version e2e tests until ADF starts using ACS 7+ * ACA-100: Change protractor.conf.js path in Jasmine Opts * fixing the wrong parameter passing Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
This commit is contained in:
@@ -390,8 +390,8 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
this.fileTitle = this.getDisplayName(nodeData.name);
|
||||
|
||||
this.urlFileContent = versionData ? this.apiService.contentApi.getVersionContentUrl(this.nodeId, versionData.id) :
|
||||
this.apiService.contentApi.getContentUrl(this.nodeId);
|
||||
this.urlFileContent = this.cacheBusterNumber ? this.urlFileContent + '&' + this.cacheBusterNumber : this.urlFileContent;
|
||||
|
||||
this.extension = this.getFileExtension(versionData ? versionData.name : nodeData.name);
|
||||
@@ -404,7 +404,11 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
if (this.viewerType === 'unknown') {
|
||||
setupNode = this.viewUtils.displayNodeRendition(nodeData.id, versionData ? versionData.id : undefined);
|
||||
if (versionData) {
|
||||
setupNode = this.viewUtils.displayNodeRendition(nodeData.id, versionData.id);
|
||||
} else {
|
||||
setupNode = this.viewUtils.displayNodeRendition(nodeData.id);
|
||||
}
|
||||
}
|
||||
|
||||
this.extensionChange.emit(this.extension);
|
||||
|
Reference in New Issue
Block a user