diff --git a/src/webcomponents/variant/interpretation/variant-interpreter-browser-template.js b/src/webcomponents/variant/interpretation/variant-interpreter-browser-template.js index 6e8cd7c8f8..7bfaeeb98a 100644 --- a/src/webcomponents/variant/interpretation/variant-interpreter-browser-template.js +++ b/src/webcomponents/variant/interpretation/variant-interpreter-browser-template.js @@ -345,18 +345,8 @@ class VariantInterpreterBrowserTemplate extends LitElement { this.requestUpdate(); } - render() { - // Check Project exists - if (!this.opencgaSession?.study) { - return html` -
- -

No project available to browse. Please login to continue

-
- `; - } - - return html` + renderStyles() { + return html ` + `; + } + + render() { + // Check Project exists + if (!this.opencgaSession?.study) { + return html` +
+ +

No project available to browse. Please login to continue

+
+ `; + } + + return html` + ${this._config.showTitle ? html` -
-
+
+
you cannot modify this interpretation. You can unlock the interpretation in - Case Info >> Interpretation Manager. + Case Info >> Interpretation Manager.
` : null }
-
+
-
+
${clinicalSignificance}
-
${re.classification.acmg.map(acmg => acmg.classification).join(", ")}
+
${re.classification.acmg.map(acmg => acmg.classification).join(", ")}
`; - clinicalSignificanceTooltipText = `
-
-
- -
${re.classification.acmg.join(", ")}
-
-
- -
${re.classification.tier}
-
-
-
`; + clinicalSignificanceTooltipText = `
+
+
ACMG
+
${re.classification?.acmg?.join(", ")}
+
+
+
ACMG Tier
+
${re.classification.tier}
+
+
`; } } - return ` + return ` ${clinicalSignificanceHtml} `; } @@ -320,7 +317,7 @@ export default class VariantInterpreterGridFormatter { }
${gene.modesOfInheritance ? ` -
${gene.modesOfInheritance.join(", ")}
+
${gene.modesOfInheritance.join(", ")}
` : "" } ${gene.confidence ? ` @@ -350,7 +347,7 @@ export default class VariantInterpreterGridFormatter {
` : "" } -
${re.classification.acmg?.map(acmg => acmg.classification || acmg)?.join(", ")}
+
${re.classification.acmg?.map(acmg => acmg.classification || acmg)?.join(", ")}
`; } @@ -364,7 +361,7 @@ export default class VariantInterpreterGridFormatter {
` : "" } -
${re.review.acmg?.map(acmg => acmg.classification)?.join(", ")}
+
${re.review.acmg?.map(acmg => acmg.classification)?.join(", ")}
`; } @@ -514,9 +511,9 @@ export default class VariantInterpreterGridFormatter { // Get tooltip text const tooltipText = VariantInterpreterGridFormatter._getSampleGenotypeTooltipText(row, sampleEntry, file); - resultHtml += ` - ${content} -
`; + resultHtml += ` + ${content} +
`; } } @@ -992,12 +989,12 @@ export default class VariantInterpreterGridFormatter { return `
${config?.showEditReview ? ` - `: ""} ${checked && row?.status ? ` -
${row.status}
+
${row.status}
` : ""} ${checked && (row.comments?.length > 0 || row.discussion?.text) ? `
diff --git a/src/webcomponents/variant/interpretation/variant-interpreter-grid.js b/src/webcomponents/variant/interpretation/variant-interpreter-grid.js index f171155e42..a2e811d92c 100644 --- a/src/webcomponents/variant/interpretation/variant-interpreter-grid.js +++ b/src/webcomponents/variant/interpretation/variant-interpreter-grid.js @@ -847,10 +847,9 @@ export default class VariantInterpreterGrid extends LitElement {