mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5331] - Alpha ADF/JS-API update has been successfully created. (#6639)
* remove unused script refactor the alpha build to use the JS-API in the branch all the time * use alpha build number * rewire maxretry * Delete check-js-api-version.js
This commit is contained in:
@@ -243,14 +243,15 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
};
|
||||
|
||||
constructor(private apiService: AlfrescoApiService,
|
||||
private viewUtils: ViewUtilService,
|
||||
private viewUtilService: ViewUtilService,
|
||||
private logService: LogService,
|
||||
private extensionService: AppExtensionService,
|
||||
private el: ElementRef) {
|
||||
viewUtilService.maxRetries = this.maxRetries;
|
||||
}
|
||||
|
||||
isSourceDefined(): boolean {
|
||||
return (this.urlFile || this.blobFile || this.nodeId || this.sharedLinkId) ? true : false;
|
||||
return !!(this.urlFile || this.blobFile || this.nodeId || this.sharedLinkId);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -261,12 +262,12 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
);
|
||||
|
||||
this.subscriptions.push(
|
||||
this.viewUtils.viewerTypeChange.subscribe((type: string) => {
|
||||
this.viewUtilService.viewerTypeChange.subscribe((type: string) => {
|
||||
this.viewerType = type;
|
||||
})
|
||||
);
|
||||
this.subscriptions.push(
|
||||
this.viewUtils.urlFileContentChange.subscribe((content: string) => {
|
||||
this.viewUtilService.urlFileContentChange.subscribe((content: string) => {
|
||||
this.urlFileContent = content;
|
||||
})
|
||||
);
|
||||
@@ -410,9 +411,9 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
|
||||
if (this.viewerType === 'unknown') {
|
||||
if (versionData) {
|
||||
setupNode = this.viewUtils.displayNodeRendition(nodeData.id, versionData.id);
|
||||
setupNode = this.viewUtilService.displayNodeRendition(nodeData.id, versionData.id);
|
||||
} else {
|
||||
setupNode = this.viewUtils.displayNodeRendition(nodeData.id);
|
||||
setupNode = this.viewUtilService.displayNodeRendition(nodeData.id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -620,7 +621,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
this.print.next(args);
|
||||
|
||||
if (!args.defaultPrevented) {
|
||||
this.viewUtils.printFileGeneric(this.nodeId, this.mimeType);
|
||||
this.viewUtilService.printFileGeneric(this.nodeId, this.mimeType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user