mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
viewer fixes for demo shell (#3686)
This commit is contained in:
committed by
Eugenio Romano
parent
6cb1d2be5c
commit
7ceee231bd
@@ -190,7 +190,11 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
validateDynamicTableRowEvent.preventDefault();
|
||||
}
|
||||
}
|
||||
)
|
||||
),
|
||||
|
||||
formService.formContentClicked.subscribe(content => {
|
||||
this.showContentPreview(content);
|
||||
})
|
||||
);
|
||||
|
||||
// Uncomment this block to see form event handling in action
|
||||
@@ -396,6 +400,10 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
}
|
||||
|
||||
onContentClick(content: any): void {
|
||||
this.showContentPreview(content);
|
||||
}
|
||||
|
||||
private showContentPreview(content: any) {
|
||||
if (content.contentBlob) {
|
||||
this.preview.showBlob(content.name, content.contentBlob);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user