mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1513] Metadata - image EXIF option not rendering (#477)
* get aspectNames for image type if there is none * checkspell and checktype * cspell
This commit is contained in:
committed by
Denys Vuika
parent
82f64fcad0
commit
19ffa4c4bb
@@ -35,7 +35,8 @@
|
||||
"xpath",
|
||||
"tooltip",
|
||||
"tooltips",
|
||||
"unindent"
|
||||
"unindent",
|
||||
"exif"
|
||||
],
|
||||
"dictionaries": [
|
||||
"html"
|
||||
|
@@ -73,11 +73,24 @@ export class InfoDrawerComponent implements OnChanges {
|
||||
} else if ((<any>entry).guid) {
|
||||
// workaround for Favorite files
|
||||
this.loadNodeInfo(entry.id);
|
||||
} else {
|
||||
// workaround Recent
|
||||
if (this.isTypeImage(entry) && !this.hasAspectNames(entry)) {
|
||||
this.loadNodeInfo(this.node.entry.id);
|
||||
} else {
|
||||
this.displayNode = this.node.entry;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private hasAspectNames(entry: MinimalNodeEntryEntity) {
|
||||
return entry.aspectNames && entry.aspectNames.includes('exif:exif');
|
||||
}
|
||||
|
||||
private isTypeImage(entry) {
|
||||
return entry.content.mimeType.includes('image/');
|
||||
}
|
||||
|
||||
private loadNodeInfo(nodeId: string) {
|
||||
if (nodeId) {
|
||||
|
@@ -51,7 +51,7 @@ export class DocumentListDirective implements OnInit, OnDestroy {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.documentList.includeFields = ['isFavorite'];
|
||||
this.documentList.includeFields = ['isFavorite', 'aspectNames'];
|
||||
this.documentList.allowDropFiles = false;
|
||||
|
||||
if (this.sortingPreferenceKey) {
|
||||
|
Reference in New Issue
Block a user