diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/shared-main/misc/channels-setup-message.component.html | 4 | ||||
-rw-r--r-- | client/src/app/shared/shared-main/misc/channels-setup-message.component.ts | 4 |
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 | } |