This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
41
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
091c05c3
Commit
091c05c3
authored
3 years ago
by
Daniel Rainer
Browse files
Options
Downloads
Patches
Plain Diff
Fix language filter
parent
c40df0f4
Branches
Branches containing commit
3 merge requests
!91
Bringing JHipster7.6.0 to production
,
!88
Integrating Update to JHipster 7.6.0 back to Development
,
!85
Fix language filter
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/app/shared/model/search/search-input.model.ts
+6
-3
6 additions, 3 deletions
...main/webapp/app/shared/model/search/search-input.model.ts
with
6 additions
and
3 deletions
src/main/webapp/app/shared/model/search/search-input.model.ts
+
6
−
3
View file @
091c05c3
import
{
MetadataSearchInput
}
from
'
app/shared/model/search/metadata-search-input.model
'
;
import
{
ILanguages
}
from
'
app/shared/model/exercise.model
'
;
import
{
MetadataSearchInput
}
from
'
app/shared/model/search/metadata-search-input.model
'
;
export
class
SearchInput
{
public
fulltextQuery
:
string
;
...
...
@@ -23,9 +23,12 @@ export class SearchInput {
this
.
metadata
.
parentId
=
value
.
parentId
;
this
.
metadata
.
naturalLanguage
=
[];
for
(
const
eType
of
Object
.
values
(
ILanguages
))
{
Object
.
keys
(
ILanguages
).
forEach
(
typeName
=>
{
if
(
value
[
typeName
])
{
const
eType
=
ILanguages
[
typeName
as
keyof
typeof
ILanguages
];
this
.
metadata
.
naturalLanguage
.
push
(
eType
);
}
}
});
this
.
metadata
.
learningResourceType
=
''
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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