viewer fixes for demo shell (#3686)

This commit is contained in:
Denys Vuika
2018-08-10 13:50:02 +01:00
committed by Eugenio Romano
parent 6cb1d2be5c
commit 7ceee231bd
4 changed files with 39 additions and 23 deletions

View File

@@ -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 {