From fbd573e59cb8d96edb79663a2cd3696be00b23ad Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 28 Feb 2022 16:37:31 +0100 Subject: [PATCH] Add refresh button to comments list --- .../overview/comments/video-comment-list.component.html | 4 +++- .../overview/comments/video-comment-list.component.scss | 8 ++++++++ .../overview/comments/video-comment-list.component.ts | 2 +- .../app/+admin/overview/videos/video-list.component.html | 4 +--- .../app/+admin/overview/videos/video-list.component.scss | 1 - 5 files changed, 13 insertions(+), 6 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 @@ -
+
+ +
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 { } } +.right-form { + display: flex; + + > *:not(:last-child) { + @include margin-right(10px); + } +} + @media screen and (max-width: $primeng-breakpoint) { .video { 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 { return this.selectedComments.length !== 0 } - protected reloadData () { + reloadData () { this.videoCommentService.getAdminVideoComments({ pagination: this.pagination, sort: this.sort, diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.html index 974912b32..75d9be5f1 100644 --- a/client/src/app/+admin/overview/videos/video-list.component.html +++ b/client/src/app/+admin/overview/videos/video-list.component.html @@ -24,9 +24,7 @@
-
- -
+
diff --git a/client/src/app/+admin/overview/videos/video-list.component.scss b/client/src/app/+admin/overview/videos/video-list.component.scss index 616b9bc6b..cb47b6548 100644 --- a/client/src/app/+admin/overview/videos/video-list.component.scss +++ b/client/src/app/+admin/overview/videos/video-list.component.scss @@ -28,4 +28,3 @@ my-embed { @include margin-right(10px); } } -