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 get userInformationLoaded () {
20 return this.authService.userInformationLoaded
23 get hasChannelNotConfigured () {
24 return this.user.videoChannels
25 .filter((channel: VideoChannel) => (!channel.avatar || !channel.description))
30 this.user = this.authService.getUser()