Skip to content

Commit 8e686e9

Browse files
authored
Merge pull request #76 from Gid733/master
Fix pdf download
2 parents 34006ed + 24a3e57 commit 8e686e9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

eform-client/src/app/modules/cases/components/cases-table/cases-table.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ <h1 class="page-title header-page-title">
120120
</div>
121121

122122
<div class="row">
123-
<button tooltip="Download PDF" (click)="downloadTemplatePDF(this.currentTemplate.id, caseModel.id)"
124-
class="needs_tooltip btn btn-ar btn-sm btn-default"
123+
<button tooltip="Download PDF" href="/api/template-files/download-case-pdf/{{currentTemplate.id}}?caseId={{caseModel.id}}"
124+
class="needs_tooltip btn btn-ar btn-xs btn-default"
125125
type="button">
126126
<span class="fa fa-file-pdf-o"></span>
127127
</button>

eform-client/src/app/modules/cases/components/cases-table/cases-table.component.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ export class CasesTableComponent implements OnInit {
5757
});
5858
}
5959

60-
downloadTemplatePDF(templateId: number, caseId: number) {
61-
this.eFormService.downloadEformPDF(templateId, caseId).subscribe((data => {
62-
63-
}));
64-
}
65-
6660
submitCaseDelete(id: number) {
6761
this.casesService.deleteCase(id).subscribe((data => {
6862
if (data && data.success) {

0 commit comments

Comments
 (0)