Add refresh button to comments list

This commit is contained in:
Chocobozzz 2022-02-28 16:37:31 +01:00
parent 3c18ff47a0
commit fbd573e59c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 13 additions and 6 deletions

View File

@ -25,8 +25,10 @@
</my-action-dropdown>
</div>
<div class="ml-auto">
<div class="ml-auto right-form">
<my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
<my-button i18n-label label="Refresh" icon="refresh" (click)="reloadData()"></my-button>
</div>
</div>
</ng-template>

View File

@ -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;

View File

@ -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,

View File

@ -24,10 +24,8 @@
<div class="ml-auto right-form">
<my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
<div class="button-filter-block">
<my-button i18n-label label="Refresh" icon="refresh" (click)="reloadData()"></my-button>
</div>
</div>
</div>
</ng-template>

View File

@ -28,4 +28,3 @@ my-embed {
@include margin-right(10px);
}
}