Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
Carelle Djuffo Nzangue
frag.jetzt
Commits
f99f5251
Commit
f99f5251
authored
Mar 30, 2021
by
Lukas Mauß
Browse files
Show correct hint if no questions exist
parent
4aec4b28
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html
View file @
f99f5251
<div
fxLayout=
"row"
*ngIf=
"comments.length > 0"
[ngClass]=
"{'search-container' : !scroll, 'search-container-fixed' : scroll}"
*ngIf=
"comments.length > 1"
(window:scroll)=
"checkScroll()"
fxLayoutAlign=
"center"
>
<mat-label
*ngIf=
"deviceType === 'desktop'"
...
...
@@ -127,7 +127,7 @@
</app-comment>
</div>
<div
*ngIf=
"comments && commentsFilteredByTime.length < 1 && period === 'time-all' && !isLoading"
<div
*ngIf=
"comments &&
(
commentsFilteredByTime.length < 1 && period === 'time-all'
|| comments.length === 0)
&& !isLoading"
fxLayout=
"row"
fxLayoutAlign=
"center center"
class=
"no-comments"
>
...
...
@@ -136,7 +136,7 @@
</div>
<div
*ngIf=
"(filteredComments && filteredComments.length === 0 && hideCommentsList)
|| (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading"
|| (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading
&& comments.length > 0
"
fxLayout=
"row"
fxLayoutAlign=
"center center"
class=
"no-comments"
>
...
...
src/app/components/shared/comment-list/comment-list.component.html
View file @
f99f5251
<div
fxLayout=
"row"
*ngIf=
"comments.length > 0"
[ngClass]=
"{'search-container' : !scroll, 'search-container-fixed' : scroll}"
*ngIf=
"comments.length > 1"
(window:scroll)=
"checkScroll()"
fxLayoutAlign=
"center"
>
<button
id=
"filter-close-button"
...
...
@@ -227,7 +227,7 @@
</div>
<!-- No Questions Present -->
<div
*ngIf=
"comments && commentsFilteredByTime.length < 1 && period === 'time-all' && !isLoading"
<div
*ngIf=
"comments &&
(
commentsFilteredByTime.length < 1 && period === 'time-all'
|| comments.length === 0)
&& !isLoading"
fxLayout=
"row"
fxLayoutAlign=
"center center"
class=
"no-comments"
>
...
...
@@ -235,7 +235,7 @@
</div>
<div
*ngIf=
"(filteredComments && filteredComments.length === 0 && hideCommentsList)
|| (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading"
|| (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading
&& comments.length > 0
"
fxLayout=
"row"
fxLayoutAlign=
"center center"
class=
"no-comments"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment