diff options
Diffstat (limited to 'client/src/app/+my-library/my-video-channel-syncs')
3 files changed, 12 insertions, 11 deletions
diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html index 5f368d430..538bbd178 100644 --- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html +++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html | |||
@@ -36,7 +36,6 @@ | |||
36 | <th style="width: 10%" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th> | 36 | <th style="width: 10%" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th> |
37 | <th style="width: 10%" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | 37 | <th style="width: 10%" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> |
38 | <th style="width: 10%" i18n pSortableColumn="lastSyncAt">Last synchronization at <p-sortIcon field="lastSyncAt"></p-sortIcon></th> | 38 | <th style="width: 10%" i18n pSortableColumn="lastSyncAt">Last synchronization at <p-sortIcon field="lastSyncAt"></p-sortIcon></th> |
39 | <th></th> | ||
40 | </tr> | 39 | </tr> |
41 | </ng-template> | 40 | </ng-template> |
42 | 41 | ||
@@ -79,12 +78,6 @@ | |||
79 | 78 | ||
80 | <td>{{ videoChannelSync.createdAt | date: 'short' }}</td> | 79 | <td>{{ videoChannelSync.createdAt | date: 'short' }}</td> |
81 | <td>{{ videoChannelSync.lastSyncAt | date: 'short' }}</td> | 80 | <td>{{ videoChannelSync.lastSyncAt | date: 'short' }}</td> |
82 | |||
83 | <td> | ||
84 | <a i18n routerLink="/my-library/video-imports" [queryParams]="{ search: 'videoChannelSyncId:' + videoChannelSync.id }" class="peertube-button-link grey-button"> | ||
85 | List imports | ||
86 | </a> | ||
87 | </td> | ||
88 | </tr> | 81 | </tr> |
89 | </ng-template> | 82 | </ng-template> |
90 | </p-table> | 83 | </p-table> |
diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts index 290847418..d18e78201 100644 --- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts +++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { SortMeta } from 'primeng/api' | ||
2 | import { mergeMap } from 'rxjs' | ||
1 | import { Component, OnInit } from '@angular/core' | 3 | import { Component, OnInit } from '@angular/core' |
2 | import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core' | 4 | import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core' |
3 | import { DropdownAction, VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' | 5 | import { DropdownAction, VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' |
4 | import { HTMLServerConfig } from '@shared/models/server' | 6 | import { HTMLServerConfig } from '@shared/models/server' |
5 | import { VideoChannelSync, VideoChannelSyncState } from '@shared/models/videos' | 7 | import { VideoChannelSync, VideoChannelSyncState } from '@shared/models/videos' |
6 | import { SortMeta } from 'primeng/api' | ||
7 | import { mergeMap } from 'rxjs' | ||
8 | 8 | ||
9 | @Component({ | 9 | @Component({ |
10 | templateUrl: './my-video-channel-syncs.component.html', | 10 | templateUrl: './my-video-channel-syncs.component.html', |
@@ -46,6 +46,14 @@ export class MyVideoChannelSyncsComponent extends RestTable implements OnInit { | |||
46 | this.videoChannelSyncActions = [ | 46 | this.videoChannelSyncActions = [ |
47 | [ | 47 | [ |
48 | { | 48 | { |
49 | label: $localize`List imports`, | ||
50 | linkBuilder: () => [ '/my-library/video-imports' ], | ||
51 | queryParamsBuilder: sync => ({ search: `videoChannelSyncId:${sync.id}` }), | ||
52 | iconName: 'cloud-download' | ||
53 | } | ||
54 | ], | ||
55 | [ | ||
56 | { | ||
49 | label: $localize`Delete`, | 57 | label: $localize`Delete`, |
50 | iconName: 'delete', | 58 | iconName: 'delete', |
51 | handler: videoChannelSync => this.deleteSync(videoChannelSync) | 59 | handler: videoChannelSync => this.deleteSync(videoChannelSync) |
diff --git a/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts b/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts index 9ceb6dfd1..a14ab5b92 100644 --- a/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts +++ b/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts | |||
@@ -5,7 +5,7 @@ import { Router } from '@angular/router' | |||
5 | import { AuthService, Notifier } from '@app/core' | 5 | import { AuthService, Notifier } from '@app/core' |
6 | import { listUserChannelsForSelect } from '@app/helpers' | 6 | import { listUserChannelsForSelect } from '@app/helpers' |
7 | import { VIDEO_CHANNEL_EXTERNAL_URL_VALIDATOR } from '@app/shared/form-validators/video-channel-validators' | 7 | import { VIDEO_CHANNEL_EXTERNAL_URL_VALIDATOR } from '@app/shared/form-validators/video-channel-validators' |
8 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 8 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
9 | import { VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' | 9 | import { VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' |
10 | import { VideoChannelSyncCreate } from '@shared/models/videos' | 10 | import { VideoChannelSyncCreate } from '@shared/models/videos' |
11 | 11 | ||
@@ -20,7 +20,7 @@ export class VideoChannelSyncEditComponent extends FormReactive implements OnIni | |||
20 | existingVideosStrategy: string | 20 | existingVideosStrategy: string |
21 | 21 | ||
22 | constructor ( | 22 | constructor ( |
23 | protected formValidatorService: FormValidatorService, | 23 | protected formReactiveService: FormReactiveService, |
24 | private authService: AuthService, | 24 | private authService: AuthService, |
25 | private router: Router, | 25 | private router: Router, |
26 | private notifier: Notifier, | 26 | private notifier: Notifier, |