diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-11 14:33:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-11 16:41:51 +0200 |
commit | cf78883c70dca99fc519374d55620d9403d482be (patch) | |
tree | f5a10b078414ba5f0f3562a945b3e6cce9524e3a /client/src/app/search/search.component.ts | |
parent | 7e4022a554016ef7b8274f0473210e2232f5f455 (diff) | |
download | PeerTube-cf78883c70dca99fc519374d55620d9403d482be.tar.gz PeerTube-cf78883c70dca99fc519374d55620d9403d482be.tar.zst PeerTube-cf78883c70dca99fc519374d55620d9403d482be.zip |
Limit thumbnail sizes
Diffstat (limited to 'client/src/app/search/search.component.ts')
-rw-r--r-- | client/src/app/search/search.component.ts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts index 7ab0ed9d6..0439fdf51 100644 --- a/client/src/app/search/search.component.ts +++ b/client/src/app/search/search.component.ts | |||
@@ -8,11 +8,11 @@ import { SearchService } from '@app/search/search.service' | |||
8 | import { immutableAssign } from '@app/shared/misc/utils' | 8 | import { immutableAssign } from '@app/shared/misc/utils' |
9 | import { ComponentPagination } from '@app/shared/rest/component-pagination.model' | 9 | import { ComponentPagination } from '@app/shared/rest/component-pagination.model' |
10 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 10 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' |
11 | import { MiniatureDisplayOptions } from '@app/shared/video/video-miniature.component' | ||
11 | import { Video } from '@app/shared/video/video.model' | 12 | import { Video } from '@app/shared/video/video.model' |
12 | import { MetaService } from '@ngx-meta/core' | 13 | import { MetaService } from '@ngx-meta/core' |
13 | import { I18n } from '@ngx-translate/i18n-polyfill' | 14 | import { I18n } from '@ngx-translate/i18n-polyfill' |
14 | import { ServerConfig } from '@shared/models' | 15 | import { ServerConfig } from '@shared/models' |
15 | import { UserService } from '@app/shared' | ||
16 | import { SearchTargetType } from '@shared/models/search/search-target-query.model' | 16 | import { SearchTargetType } from '@shared/models/search/search-target-query.model' |
17 | 17 | ||
18 | @Component({ | 18 | @Component({ |
@@ -32,6 +32,17 @@ export class SearchComponent implements OnInit, OnDestroy { | |||
32 | isSearchFilterCollapsed = true | 32 | isSearchFilterCollapsed = true |
33 | currentSearch: string | 33 | currentSearch: string |
34 | 34 | ||
35 | videoDisplayOptions: MiniatureDisplayOptions = { | ||
36 | date: true, | ||
37 | views: true, | ||
38 | by: true, | ||
39 | avatar: false, | ||
40 | privacyLabel: false, | ||
41 | privacyText: false, | ||
42 | state: false, | ||
43 | blacklistInfo: false | ||
44 | } | ||
45 | |||
35 | errorMessage: string | 46 | errorMessage: string |
36 | serverConfig: ServerConfig | 47 | serverConfig: ServerConfig |
37 | 48 | ||