mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[ACS-8818] Mime type icons are now updated with file names in the viewer
This commit is contained in:
parent
76d4c6a0c5
commit
ac91bd83ec
@ -334,6 +334,7 @@ export class AlfrescoViewerComponent implements OnChanges, OnInit {
|
||||
|
||||
const fileExtension = this.viewUtilService.getFileExtension(versionData ? versionData.name : nodeData.name);
|
||||
this.fileName = versionData ? versionData.name : nodeData.name;
|
||||
this.mimeType = mimeType;
|
||||
const viewerType = this.viewUtilService.getViewerType(fileExtension, mimeType);
|
||||
|
||||
if (viewerType === 'unknown') {
|
||||
@ -348,13 +349,11 @@ export class AlfrescoViewerComponent implements OnChanges, OnInit {
|
||||
|
||||
const nodeMimeType = nodeData?.content?.mimeType;
|
||||
const renditionMimeType = nodeRendition.mimeType;
|
||||
mimeType = renditionMimeType || nodeMimeType;
|
||||
this.mimeType = renditionMimeType || nodeMimeType;
|
||||
}
|
||||
} else if (viewerType === 'media') {
|
||||
this.tracks = await this.renditionService.generateMediaTracksRendition(this.nodeId);
|
||||
}
|
||||
|
||||
this.mimeType = mimeType;
|
||||
this.urlFileContent = urlFileContent + (this.cacheBusterNumber ? '&' + this.cacheBusterNumber : '');
|
||||
this.sidebarRightTemplateContext.node = nodeData;
|
||||
this.sidebarLeftTemplateContext.node = nodeData;
|
||||
|
Loading…
x
Reference in New Issue
Block a user