aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature/videos-list.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-30 09:37:00 +0200
committerChocobozzz <me@florianbigard.com>2021-08-30 09:37:18 +0200
commit1b20624552501e8c2968853c6d139af568e1eb95 (patch)
treec9788cbdef6af1ee4997e4a5640c7929e4c6c338 /client/src/app/shared/shared-video-miniature/videos-list.component.ts
parente874edd9f876df7b4020137b3a9b7feb8078b38f (diff)
downloadPeerTube-1b20624552501e8c2968853c6d139af568e1eb95.tar.gz
PeerTube-1b20624552501e8c2968853c6d139af568e1eb95.tar.zst
PeerTube-1b20624552501e8c2968853c6d139af568e1eb95.zip
Don't display scope fitler on account/channel pages
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/videos-list.component.ts')
-rw-r--r--client/src/app/shared/shared-video-miniature/videos-list.component.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-miniature/videos-list.component.ts b/client/src/app/shared/shared-video-miniature/videos-list.component.ts
index 10de97298..3db835257 100644
--- a/client/src/app/shared/shared-video-miniature/videos-list.component.ts
+++ b/client/src/app/shared/shared-video-miniature/videos-list.component.ts
@@ -59,6 +59,8 @@ export class VideosListComponent implements OnInit, OnChanges, OnDestroy {
59 59
60 @Input() headerActions: HeaderAction[] = [] 60 @Input() headerActions: HeaderAction[] = []
61 61
62 @Input() hideScopeFilter = false
63
62 @Input() displayOptions: MiniatureDisplayOptions = { 64 @Input() displayOptions: MiniatureDisplayOptions = {
63 date: true, 65 date: true,
64 views: true, 66 views: true,
@@ -109,7 +111,11 @@ export class VideosListComponent implements OnInit, OnChanges, OnDestroy {
109 } 111 }
110 112
111 ngOnInit () { 113 ngOnInit () {
112 this.filters = new VideoFilters(this.defaultSort, this.defaultScope) 114 const hiddenFilters = this.hideScopeFilter
115 ? [ 'scope' ]
116 : []
117
118 this.filters = new VideoFilters(this.defaultSort, this.defaultScope, hiddenFilters)
113 this.filters.load({ ...this.route.snapshot.queryParams, scope: this.defaultScope }) 119 this.filters.load({ ...this.route.snapshot.queryParams, scope: this.defaultScope })
114 120
115 this.groupedDateLabels = { 121 this.groupedDateLabels = {