Skip to content
Snippets Groups Projects
Commit f2aa0678 authored by Philipp Krop's avatar Philipp Krop
Browse files

feat: Only allow selection of either Keine, Unbekannt, or various infections

parent 76bf3d02
No related branches found
No related tags found
1 merge request!7Update study environments
......@@ -70,7 +70,14 @@ export class TypeaheadComponent implements OnInit {
const { checked, value } = ev.detail;
if (checked) {
this.workingSelectedValues = [...this.workingSelectedValues, value];
if (value == "Keine" || value == "Unbekannt") {
this.workingSelectedValues = [value];
this.confirmChanges();
}else {
// Disable Keine or Unbekannt if something else is selected
this.workingSelectedValues = this.workingSelectedValues.filter((item) => item !== "Keine" && item !== "Unbekannt");
this.workingSelectedValues = [...this.workingSelectedValues, value];
}
} else {
this.workingSelectedValues = this.workingSelectedValues.filter((item) => item !== value);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment