]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-main/account/avatar.component.ts
Hide generic channel display name and avatar on watch view (#2988)
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / account / avatar.component.ts
index 31f39c20013336d0906d2f3a31351192d7b94aaa..73c145ef9e5cfc5ea524101c42b65586f9a2fd7c 100644 (file)
@@ -10,6 +10,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
 export class AvatarComponent implements OnInit {
   @Input() video: Video
   @Input() size: 'md' | 'sm' = 'md'
+  @Input() genericChannel: boolean
 
   channelLinkTitle = ''
   accountLinkTitle = ''
@@ -28,4 +29,8 @@ export class AvatarComponent implements OnInit {
       { name: this.video.account.name, handle: this.video.byAccount }
     )
   }
+
+  isChannelAvatarNull () {
+    return this.video.channel.avatar === null
+  }
 }