From cf78883c70dca99fc519374d55620d9403d482be Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Jun 2020 14:33:33 +0200 Subject: Limit thumbnail sizes --- client/src/app/search/search.component.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'client/src/app/search/search.component.ts') 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' import { immutableAssign } from '@app/shared/misc/utils' import { ComponentPagination } from '@app/shared/rest/component-pagination.model' import { VideoChannel } from '@app/shared/video-channel/video-channel.model' +import { MiniatureDisplayOptions } from '@app/shared/video/video-miniature.component' import { Video } from '@app/shared/video/video.model' import { MetaService } from '@ngx-meta/core' import { I18n } from '@ngx-translate/i18n-polyfill' import { ServerConfig } from '@shared/models' -import { UserService } from '@app/shared' import { SearchTargetType } from '@shared/models/search/search-target-query.model' @Component({ @@ -32,6 +32,17 @@ export class SearchComponent implements OnInit, OnDestroy { isSearchFilterCollapsed = true currentSearch: string + videoDisplayOptions: MiniatureDisplayOptions = { + date: true, + views: true, + by: true, + avatar: false, + privacyLabel: false, + privacyText: false, + state: false, + blacklistInfo: false + } + errorMessage: string serverConfig: ServerConfig -- cgit v1.2.3