]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts
Merge branch 'release/4.3.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / my-video-channel-syncs / my-video-channel-syncs.component.ts
index 5d5cc6dea84a7d462e630ae2062ac681db03a352..d18e78201c2dc428afb1f9dfd5d4912e14f9dc7e 100644 (file)
@@ -1,10 +1,10 @@
+import { SortMeta } from 'primeng/api'
+import { mergeMap } from 'rxjs'
 import { Component, OnInit } from '@angular/core'
 import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'
 import { DropdownAction, VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main'
 import { HTMLServerConfig } from '@shared/models/server'
 import { VideoChannelSync, VideoChannelSyncState } from '@shared/models/videos'
-import { SortMeta } from 'primeng/api'
-import { mergeMap } from 'rxjs'
 
 @Component({
   templateUrl: './my-video-channel-syncs.component.html',
@@ -47,7 +47,8 @@ export class MyVideoChannelSyncsComponent extends RestTable implements OnInit {
       [
         {
           label: $localize`List imports`,
-          linkBuilder: (videoChannelSync) => [ `/my-library/video-imports?search=videoChannelSyncId:${videoChannelSync.id}` ],
+          linkBuilder: () => [ '/my-library/video-imports' ],
+          queryParamsBuilder: sync => ({ search: `videoChannelSyncId:${sync.id}` }),
           iconName: 'cloud-download'
         }
       ],