Skip to content

Commit

Permalink
wc: replace select clinical-priority-filter #TASK-5070
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodielm committed Nov 9, 2023
1 parent e43ccfe commit 45c71f4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/webcomponents/clinical/filters/clinical-priority-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import {LitElement, html} from "lit";
import "../../commons/forms/select-field-filter.js";
import "../../commons/forms/select-field-filter2.js";

export default class ClinicalPriorityFilter extends LitElement {

Expand Down Expand Up @@ -84,16 +84,18 @@ export default class ClinicalPriorityFilter extends LitElement {

render() {
return html`
<select-field-filter
<select-field-filter2
.data="${this.priorities}"
.value=${this.priority}
.placeholder="${this.placeholder}"
.multiple="${this.multiple}"
.forceSelection="${this.forceSelection}"
.config="${{
placeholder: this.placeholder,
multiple: this.multiple,
liveSearch: false,
disabled: this.disabled,
}}"
.classes="${this.classes}"
.disabled="${this.disabled}"
@filterChange="${e => this.filterChange(e)}">
</select-field-filter>
</select-field-filter2>
<!-- Only show description when one single values is expected -->
${!this.multiple && this.priorityObject?.description ? html`
Expand Down

0 comments on commit 45c71f4

Please sign in to comment.