From c2caa99b942dea7fa9d2856f53efd1316169658e Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 8 Jun 2020 08:52:06 +0200 Subject: Add channel/account avatars in miniature (#2838) * add small avatar to miniature * fix svg size for trending and search icons in plugins view * parametrize avatar in miniature display options --- .../app/videos/recommendations/recommended-videos.component.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/src/app/videos/recommendations/recommended-videos.component.ts') diff --git a/client/src/app/videos/recommendations/recommended-videos.component.ts b/client/src/app/videos/recommendations/recommended-videos.component.ts index d4b4c929b..d4a5df19a 100644 --- a/client/src/app/videos/recommendations/recommended-videos.component.ts +++ b/client/src/app/videos/recommendations/recommended-videos.component.ts @@ -9,6 +9,7 @@ import { AuthService, Notifier } from '@app/core' import { UserService } from '@app/shared/users/user.service' import { I18n } from '@ngx-translate/i18n-polyfill' import { SessionStorageService } from '@app/shared/misc/storage.service' +import { MiniatureDisplayOptions } from '@app/shared/video/video-miniature.component' @Component({ selector: 'my-recommended-videos', @@ -24,6 +25,13 @@ export class RecommendedVideosComponent implements OnChanges { autoPlayNextVideo: boolean autoPlayNextVideoTooltip: string + displayOptions: MiniatureDisplayOptions = { + date: true, + views: true, + by: true, + avatar: true + } + readonly hasVideos$: Observable readonly videos$: Observable -- cgit v1.2.3