1 import { Component, Input, OnInit } from '@angular/core'
2 import { AuthService, User } from '@app/core'
3 import { VideoChannel } from '@app/shared/shared-main'
6 selector: 'my-channels-setup-message',
7 templateUrl: './channels-setup-message.component.html',
8 styleUrls: [ './channels-setup-message.component.scss' ]
10 export class ChannelsSetupMessageComponent implements OnInit {
11 @Input() hideLink = false
16 private authService: AuthService
19 hasChannelNotConfigured () {
20 if (!this.user.videoChannels) return false
22 return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
26 this.user = this.authService.getUser()