diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-28 16:37:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-28 16:37:31 +0100 |
commit | fbd573e59cb8d96edb79663a2cd3696be00b23ad (patch) | |
tree | 0121d42152a5cf3d3a850e63502c8bc3fb32cb61 /client/src/app/+admin/overview/comments | |
parent | 3c18ff47a0c385858c2c217eddd9ba5b8ea805f6 (diff) | |
download | PeerTube-fbd573e59cb8d96edb79663a2cd3696be00b23ad.tar.gz PeerTube-fbd573e59cb8d96edb79663a2cd3696be00b23ad.tar.zst PeerTube-fbd573e59cb8d96edb79663a2cd3696be00b23ad.zip |
Add refresh button to comments list
Diffstat (limited to 'client/src/app/+admin/overview/comments')
3 files changed, 12 insertions, 2 deletions
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.html b/client/src/app/+admin/overview/comments/video-comment-list.component.html index 0dbbbe1cc..27a5d82ff 100644 --- a/client/src/app/+admin/overview/comments/video-comment-list.component.html +++ b/client/src/app/+admin/overview/comments/video-comment-list.component.html | |||
@@ -25,8 +25,10 @@ | |||
25 | </my-action-dropdown> | 25 | </my-action-dropdown> |
26 | </div> | 26 | </div> |
27 | 27 | ||
28 | <div class="ml-auto"> | 28 | <div class="ml-auto right-form"> |
29 | <my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter> | 29 | <my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter> |
30 | |||
31 | <my-button i18n-label label="Refresh" icon="refresh" (click)="reloadData()"></my-button> | ||
30 | </div> | 32 | </div> |
31 | </div> | 33 | </div> |
32 | </ng-template> | 34 | </ng-template> |
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.scss b/client/src/app/+admin/overview/comments/video-comment-list.component.scss index 3cf7b8db6..d7eb02142 100644 --- a/client/src/app/+admin/overview/comments/video-comment-list.component.scss +++ b/client/src/app/+admin/overview/comments/video-comment-list.component.scss | |||
@@ -45,6 +45,14 @@ my-global-icon { | |||
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | .right-form { | ||
49 | display: flex; | ||
50 | |||
51 | > *:not(:last-child) { | ||
52 | @include margin-right(10px); | ||
53 | } | ||
54 | } | ||
55 | |||
48 | @media screen and (max-width: $primeng-breakpoint) { | 56 | @media screen and (max-width: $primeng-breakpoint) { |
49 | .video { | 57 | .video { |
50 | align-items: flex-start !important; | 58 | align-items: flex-start !important; |
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.ts b/client/src/app/+admin/overview/comments/video-comment-list.component.ts index 25fe65133..f3f43a900 100644 --- a/client/src/app/+admin/overview/comments/video-comment-list.component.ts +++ b/client/src/app/+admin/overview/comments/video-comment-list.component.ts | |||
@@ -117,7 +117,7 @@ export class VideoCommentListComponent extends RestTable implements OnInit { | |||
117 | return this.selectedComments.length !== 0 | 117 | return this.selectedComments.length !== 0 |
118 | } | 118 | } |
119 | 119 | ||
120 | protected reloadData () { | 120 | reloadData () { |
121 | this.videoCommentService.getAdminVideoComments({ | 121 | this.videoCommentService.getAdminVideoComments({ |
122 | pagination: this.pagination, | 122 | pagination: this.pagination, |
123 | sort: this.sort, | 123 | sort: this.sort, |