Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
user-interface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dzptm
user-interface
Commits
f2aa0678
Commit
f2aa0678
authored
1 year ago
by
Philipp Krop
Browse files
Options
Downloads
Patches
Plain Diff
feat: Only allow selection of either Keine, Unbekannt, or various infections
parent
76bf3d02
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Update study environments
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Webservice/structured-order/src/app/components/typeahead/typeahead.component.ts
+8
-1
8 additions, 1 deletion
...order/src/app/components/typeahead/typeahead.component.ts
with
8 additions
and
1 deletion
Webservice/structured-order/src/app/components/typeahead/typeahead.component.ts
+
8
−
1
View file @
f2aa0678
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment