Skip to content

Commit

Permalink
Merge pull request #876 from opencb/TASK-5797
Browse files Browse the repository at this point in the history
TASK-5797 - Variant Caller Sample Filter in SVB do not display dropdowns to select comparator and value
  • Loading branch information
jmjuanes authored Mar 18, 2024
2 parents a66a67c + 0ad1aa4 commit c2487f3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/webcomponents/commons/filters/variant-file-format-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class VariantFileFormatFilter extends LitElement {
render() {
return html`
<data-form
.data=${this._sampleData}
.data="${this._sampleData}"
.config="${this._config}"
@fieldChange="${this.filterChange}">
</data-form>
Expand All @@ -124,7 +124,7 @@ export default class VariantFileFormatFilter extends LitElement {
collapsable: true,
titleVisible: false,
titleWidth: 2,
defaultValue: "-",
defaultValue: "",
defaultLayout: "vertical"
},
sections: [
Expand All @@ -141,9 +141,9 @@ export default class VariantFileFormatFilter extends LitElement {
type: "input-number",
comparators: this.depthIndex?.type === "RANGE_LT" ? "<,>=" : "<=,>",
allowedValues: this.depthIndex?.thresholds,
defaultValue: "",
display: {
visible: () => this.depthIndex?.thresholds?.length > 0
defaultValue: "",
visible: () => this.depthIndex?.thresholds?.length > 0,
}
},
{
Expand All @@ -152,9 +152,9 @@ export default class VariantFileFormatFilter extends LitElement {
type: "input-number",
comparators: this.afIndex?.type === "RANGE_LT" ? "<,>=" : "<=,>",
allowedValues: this.afIndex?.thresholds,
defaultValue: "",
display: {
visible: () => this.afIndex?.thresholds?.length > 0
defaultValue: "",
visible: () => this.afIndex?.thresholds?.length > 0,
}
},
{
Expand All @@ -163,9 +163,9 @@ export default class VariantFileFormatFilter extends LitElement {
type: "input-number",
comparators: this.extVafIndex?.type === "RANGE_LT" ? "<,>=" : "<=,>",
allowedValues: this.extVafIndex?.thresholds,
defaultValue: "",
display: {
visible: () => this.extVafIndex?.thresholds?.length > 0
defaultValue: "",
visible: () => this.extVafIndex?.thresholds?.length > 0,
}
}
]
Expand Down
8 changes: 5 additions & 3 deletions src/webcomponents/commons/filters/variant-file-info-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export default class VariantFileInfoFilter extends LitElement {
render() {
return html`
<data-form
.data=${this.fileDataQuery}
.data="${this.fileDataQuery}"
.config="${this._config}"
@fieldChange="${this.filterChange}">
</data-form>
Expand Down Expand Up @@ -469,7 +469,9 @@ export default class VariantFileInfoFilter extends LitElement {
allowedValues: field.allowedValues,
multiple: field.multiple ?? false,
maxOptions: field.maxOptions ?? 1,
defaultValue: "",
display: {
defaultValue: "",
},
}))
],
};
Expand All @@ -483,7 +485,7 @@ export default class VariantFileInfoFilter extends LitElement {
collapsable: true,
titleVisible: false,
titleWidth: 2,
defaultValue: "-",
defaultValue: "",
defaultLayout: "vertical"
},
sections: _sections,
Expand Down

0 comments on commit c2487f3

Please sign in to comment.