Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Merge requests
!373
Simplify filter conditions - still not working in IOS
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Simplify filter conditions - still not working in IOS
try-to-fix-comment-filter
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Lukas Mauß
requested to merge
try-to-fix-comment-filter
into
master
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
1808abb1
Show latest version
1 file
+
4
−
4
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1808abb1
Simplify filter conditions - still not working in IOS
· 1808abb1
Lukas Mauß
authored
5 years ago
src/app/components/shared/comment-list/comment-list.component.ts
+
4
−
4
Options
@@ -256,13 +256,13 @@ export class CommentListComponent implements OnInit {
this
.
filteredComments
=
this
.
comments
.
filter
(
c
=>
{
switch
(
type
)
{
case
this
.
correct
:
return
(
c
.
correct
)
?
true
:
false
;
return
c
.
correct
;
case
this
.
favorite
:
return
(
c
.
favorite
)
?
true
:
false
;
return
c
.
favorite
;
case
this
.
read
:
return
(
c
.
read
)
?
true
:
false
;
return
c
.
read
;
case
this
.
unread
:
return
(
!
c
.
read
)
?
true
:
false
;
return
!
c
.
read
;
}
});
this
.
sortComments
(
this
.
currentSort
);