mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
insert new logic in the demo Shell
This commit is contained in:
@@ -56,15 +56,14 @@ export class SearchComponent {
|
||||
previewName: string;
|
||||
previewMimeType: string;
|
||||
previewActive: boolean = false;
|
||||
fileNodeId: string;
|
||||
|
||||
constructor(public contentService: AlfrescoContentService) {
|
||||
}
|
||||
|
||||
onFileClicked(event) {
|
||||
if (event.value.entry.isFile) {
|
||||
this.previewName = event.value.entry.name;
|
||||
this.previewMimeType = event.value.entry.content.mimeType;
|
||||
this.previewContentUrl = this.contentService.getContentUrl(event.value);
|
||||
this.fileNodeId = event.value.entry.id;
|
||||
this.previewActive = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user