aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-16 11:44:54 +0200
committerChocobozzz <me@florianbigard.com>2020-06-16 11:44:54 +0200
commitc4a6f7901cef3dda857a789af827caae0a8f114f (patch)
tree1c7d19a01ecebccfbfc06e50c09aa53f20b9a27c /client/src/app/+my-account
parentb27b12552b1442db0f88bc891ceffc8c8ad79c43 (diff)
downloadPeerTube-c4a6f7901cef3dda857a789af827caae0a8f114f.tar.gz
PeerTube-c4a6f7901cef3dda857a789af827caae0a8f114f.tar.zst
PeerTube-c4a6f7901cef3dda857a789af827caae0a8f114f.zip
Add channel information in my videos
Diffstat (limited to 'client/src/app/+my-account')
-rw-r--r--client/src/app/+my-account/my-account-videos/my-account-videos.component.html1
-rw-r--r--client/src/app/+my-account/my-account-videos/my-account-videos.component.ts6
2 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.html b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
index 825bddf5e..32264a70a 100644
--- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
+++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
@@ -13,6 +13,7 @@
13 [miniatureDisplayOptions]="miniatureDisplayOptions" 13 [miniatureDisplayOptions]="miniatureDisplayOptions"
14 [titlePage]="titlePage" 14 [titlePage]="titlePage"
15 [getVideosObservableFunction]="getVideosObservableFunction" 15 [getVideosObservableFunction]="getVideosObservableFunction"
16 [ownerDisplayType]="ownerDisplayType"
16 #videosSelection 17 #videosSelection
17> 18>
18 <ng-template ptTemplate="globalButtons"> 19 <ng-template ptTemplate="globalButtons">
diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
index 4aa570363..0ec033eaf 100644
--- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
+++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
@@ -12,7 +12,7 @@ import { VideoService } from '../../shared/video/video.service'
12import { I18n } from '@ngx-translate/i18n-polyfill' 12import { I18n } from '@ngx-translate/i18n-polyfill'
13import { ScreenService } from '@app/shared/misc/screen.service' 13import { ScreenService } from '@app/shared/misc/screen.service'
14import { VideoChangeOwnershipComponent } from './video-change-ownership/video-change-ownership.component' 14import { VideoChangeOwnershipComponent } from './video-change-ownership/video-change-ownership.component'
15import { MiniatureDisplayOptions } from '@app/shared/video/video-miniature.component' 15import { MiniatureDisplayOptions, OwnerDisplayType } from '@app/shared/video/video-miniature.component'
16import { SelectionType, VideosSelectionComponent } from '@app/shared/video/videos-selection.component' 16import { SelectionType, VideosSelectionComponent } from '@app/shared/video/videos-selection.component'
17import { VideoSortField } from '@app/shared/video/sort-field.type' 17import { VideoSortField } from '@app/shared/video/sort-field.type'
18import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' 18import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook'
@@ -36,12 +36,14 @@ export class MyAccountVideosComponent implements OnInit, DisableForReuseHook {
36 miniatureDisplayOptions: MiniatureDisplayOptions = { 36 miniatureDisplayOptions: MiniatureDisplayOptions = {
37 date: true, 37 date: true,
38 views: true, 38 views: true,
39 by: false, 39 by: true,
40 privacyLabel: false, 40 privacyLabel: false,
41 privacyText: true, 41 privacyText: true,
42 state: true, 42 state: true,
43 blacklistInfo: true 43 blacklistInfo: true
44 } 44 }
45 ownerDisplayType: OwnerDisplayType = 'videoChannel'
46
45 videos: Video[] = [] 47 videos: Video[] = []
46 videosSearch: string 48 videosSearch: string
47 videosSearchChanged = new Subject<string>() 49 videosSearchChanged = new Subject<string>()