]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Sync channel: move the list imports button #5337
authorFlorent <florent.git@zeteo.me>
Mon, 10 Oct 2022 08:20:07 +0000 (10:20 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Wed, 12 Oct 2022 06:56:59 +0000 (08:56 +0200)
client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html
client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts

index 5f368d4304d7840af8037e53611a53e40bf81a9f..538bbd17882003235d234bc86cc134c3c5ad550c 100644 (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>
 
 
       <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>
index 2908474182374db59486344c03283d5faf4a76fc..5d5cc6dea84a7d462e630ae2062ac681db03a352 100644 (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`,