diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-27 17:02:34 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-27 17:02:44 +0100 |
commit | c1125bcadc1fa129856e56dc62f4c472cffa736a (patch) | |
tree | e6873bf7a306bfe809809f099d2d465dae3407b0 /client/src/app/videos/+video-watch/comment/video-comments.component.html | |
parent | 6f79be110d31f4f751b989fe36b9de0d0f259fe0 (diff) | |
download | PeerTube-c1125bcadc1fa129856e56dc62f4c472cffa736a.tar.gz PeerTube-c1125bcadc1fa129856e56dc62f4c472cffa736a.tar.zst PeerTube-c1125bcadc1fa129856e56dc62f4c472cffa736a.zip |
Add comment filtering by reply count
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comments.component.html')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comments.component.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/videos/+video-watch/comment/video-comments.component.html index 5fabb7dfe..e284eab0a 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.html +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.html | |||
@@ -10,6 +10,16 @@ | |||
10 | </div> | 10 | </div> |
11 | 11 | ||
12 | <my-feed [syndicationItems]="syndicationItems"></my-feed> | 12 | <my-feed [syndicationItems]="syndicationItems"></my-feed> |
13 | |||
14 | <div ngbDropdown class="d-inline-block ml-4"> | ||
15 | <button class="btn btn-sm btn-outline-secondary" id="dropdownSortComments" ngbDropdownToggle i18n> | ||
16 | Sort by | ||
17 | </button> | ||
18 | <div ngbDropdownMenu aria-labelledby="dropdownSortComments"> | ||
19 | <button (click)="handleSortChange('-createdAt')" ngbDropdownItem i18n>Most recent first (default)</button> | ||
20 | <button (click)="handleSortChange('-totalReplies')" ngbDropdownItem i18n>Most replies first</button> | ||
21 | </div> | ||
22 | </div> | ||
13 | </div> | 23 | </div> |
14 | 24 | ||
15 | <ng-template [ngIf]="video.commentsEnabled === true"> | 25 | <ng-template [ngIf]="video.commentsEnabled === true"> |