Skip to content

Commit

Permalink
wc: fix typo pdf #TASK-4860
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodielm committed Oct 17, 2023
1 parent 8a5bdfa commit 7b6263d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/core/pdf-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default class PdfBuilder {
defaultStyle: {
fontSize: 10
},
watermark: {...dataFormConfig.displayDoc.watermark},
content: [this.#creatTextElement(dataFormConfig?.displayDoc?.headerTitle), dataFormConfig.sections ? this.#transformData() : []]
watermark: {...dataFormConfig?.displayDoc.watermark},
content: [this.#creatTextElement(dataFormConfig?.displayDoc?.headerTitle), dataFormConfig?.sections ? this.#transformData() : []]
};
}

Expand Down
16 changes: 8 additions & 8 deletions src/webcomponents/clinical/clinical-analysis-review.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import LitUtils from "../commons/utils/lit-utils.js";
import ClinicalAnalysisManager from "./clinical-analysis-manager.js";
import FormUtils from "../commons/forms/form-utils.js";
import NotificationUtils from "../commons/utils/notification-utils.js";
import {createPdf} from "../../core/pdf-builder.js";
import PdfBuilder, {stylePdf} from "../../core/pdf-builder.js";
import "./clinical-analysis-summary.js";
import "../variant/interpretation/variant-interpreter-grid.js";
import "../disease-panel/disease-panel-grid.js";
Expand Down Expand Up @@ -334,13 +334,13 @@ export default class ClinicalAnalysisReview extends LitElement {
}

onDownloadPdf() {
const pdfDocument = createPdf({
content: [
"First paragraph",
"Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines"
]
});
pdfDocument.open();
// const pdfDocument = new PdfBuilder({}, {
// content: [
// "First paragraph",
// "Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines"
// ]
// });
// pdfDocument.exportToPdf();
}

render() {
Expand Down
8 changes: 4 additions & 4 deletions src/webcomponents/individual/individual-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default class IndividualView extends LitElement {
title: "Individual ID",
type: "custom",
display: {
render: data => html`
render: data => `
<span style="font-weight: bold">${data.id}</span> (UUID: ${data.uuid})
`,
},
Expand Down Expand Up @@ -272,23 +272,23 @@ export default class IndividualView extends LitElement {
field: "internal.status",
type: "custom",
display: {
render: field => field ? html`${field.name} (${UtilsNew.dateFormatter(field.date)})` : "-"
render: field => field ? `${field.name} (${UtilsNew.dateFormatter(field.date)})` : "-"
},
},
{
title: "Creation Date",
field: "creationDate",
type: "custom",
display: {
render: field => field ? html`${UtilsNew.dateFormatter(field)}` : "-"
render: field => field ? UtilsNew.dateFormatter(field) : "-"
},
},
{
title: "Modification Date",
field: "modificationDate",
type: "custom",
display: {
render: field => field ? html`${UtilsNew.dateFormatter(field)}` : "-"
render: field => field ? UtilsNew.dateFormatter(field) : "-"
},
},
{
Expand Down

0 comments on commit 7b6263d

Please sign in to comment.