]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-main/misc/channels-setup-message.component.ts
Rename studio to editor
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / misc / channels-setup-message.component.ts
index 50b98841adc21e48d1f97964ab182eca618fcadc..4f9cbc525331c4ef91909a556718290b131f4455 100644 (file)
@@ -16,14 +16,10 @@ export class ChannelsSetupMessageComponent implements OnInit {
     private authService: AuthService
   ) {}
 
-  get userInformationLoaded () {
-    return this.authService.userInformationLoaded
-  }
+  hasChannelNotConfigured () {
+    if (!this.user.videoChannels) return false
 
-  get hasChannelNotConfigured () {
-    return this.user.videoChannels
-      .filter((channel: VideoChannel) => (!channel.avatar || !channel.description))
-      .length > 0
+    return this.user.videoChannels.filter((channel: VideoChannel) => (channel.avatars.length === 0 || !channel.description)).length > 0
   }
 
   ngOnInit () {