Sync channel: move the list imports button #5337

pull/5351/head
Florent 2022-10-10 10:20:07 +02:00 committed by Chocobozzz
parent dd84f4f263
commit 3d5d2deef5
2 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,6 @@
<th style="width: 10%" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
<th style="width: 10%" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
<th style="width: 10%" i18n pSortableColumn="lastSyncAt">Last synchronization at <p-sortIcon field="lastSyncAt"></p-sortIcon></th>
<th></th>
</tr>
</ng-template>
@ -79,12 +78,6 @@
<td>{{ videoChannelSync.createdAt | date: 'short' }}</td>
<td>{{ videoChannelSync.lastSyncAt | date: 'short' }}</td>
<td>
<a i18n routerLink="/my-library/video-imports" [queryParams]="{ search: 'videoChannelSyncId:' + videoChannelSync.id }" class="peertube-button-link grey-button">
List imports
</a>
</td>
</tr>
</ng-template>
</p-table>

View File

@ -44,6 +44,13 @@ export class MyVideoChannelSyncsComponent extends RestTable implements OnInit {
this.initialize()
this.videoChannelSyncActions = [
[
{
label: $localize`List imports`,
linkBuilder: (videoChannelSync) => [ `/my-library/video-imports?search=videoChannelSyncId:${videoChannelSync.id}` ],
iconName: 'cloud-download'
}
],
[
{
label: $localize`Delete`,