aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-09-08 10:19:03 +0200
committerChocobozzz <me@florianbigard.com>2021-09-08 10:19:03 +0200
commit9e8a7e083784a62e114d2df1e7f1993586016b87 (patch)
tree2070fed23be21720461e034e1d6b92bdb06aa582 /client/src/app/shared/shared-main
parent0ea2f79d45b301fcd660efc894469a99b2239bf6 (diff)
downloadPeerTube-9e8a7e083784a62e114d2df1e7f1993586016b87.tar.gz
PeerTube-9e8a7e083784a62e114d2df1e7f1993586016b87.tar.zst
PeerTube-9e8a7e083784a62e114d2df1e7f1993586016b87.zip
Ensure we return a boolean
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r--client/src/app/shared/shared-main/misc/channels-setup-message.component.html4
-rw-r--r--client/src/app/shared/shared-main/misc/channels-setup-message.component.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-main/misc/channels-setup-message.component.html b/client/src/app/shared/shared-main/misc/channels-setup-message.component.html
index 3f94fa04c..3fe888a35 100644
--- a/client/src/app/shared/shared-main/misc/channels-setup-message.component.html
+++ b/client/src/app/shared/shared-main/misc/channels-setup-message.component.html
@@ -1,7 +1,7 @@
1<div *ngIf="hasChannelNotConfigured" class="channels-setup-message alert alert-info"> 1<div *ngIf="hasChannelNotConfigured()" class="channels-setup-message alert alert-info">
2 <my-global-icon iconName="tip"></my-global-icon> 2 <my-global-icon iconName="tip"></my-global-icon>
3 3
4 <div> 4 <div>
5 <div i18n>Some of your channels are not fully set up. Make them welcoming and explicit about what you publish by adding a <strong>banner</strong>, an <strong>avatar</strong> and a <strong>description</strong>.</div> 5 <div i18n>Some of your channels are not fully set up. Make them welcoming and explicit about what you publish by adding a <strong>banner</strong>, an <strong>avatar</strong> and a <strong>description</strong>.</div>
6 <a *ngIf="!hideLink" class="channels-settings-link" routerLink="/my-library/video-channels" i18n>Set up my channels</a> 6 <a *ngIf="!hideLink" class="channels-settings-link" routerLink="/my-library/video-channels" i18n>Set up my channels</a>
7 </div> 7 </div>
diff --git a/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts b/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts
index b21507a34..702475029 100644
--- a/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts
+++ b/client/src/app/shared/shared-main/misc/channels-setup-message.component.ts
@@ -16,8 +16,8 @@ export class ChannelsSetupMessageComponent implements OnInit {
16 private authService: AuthService 16 private authService: AuthService
17 ) {} 17 ) {}
18 18
19 get hasChannelNotConfigured () { 19 hasChannelNotConfigured () {
20 if (!this.user.videoChannels) return 20 if (!this.user.videoChannels) return false
21 21
22 return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0 22 return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
23 } 23 }