]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/search/search.component.ts
Limit thumbnail sizes
[github/Chocobozzz/PeerTube.git] / client / src / app / search / search.component.ts
index 7ab0ed9d6ea5c225cbe1ec0615a7ea0098cc973c..0439fdf512b03e54fa50fd8311f6af08b4877b98 100644 (file)
@@ -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