aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-11-18 19:20:05 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-25 11:12:06 +0100
commitc418d483004dfbae9ea38d54aa1577db46d34a8a (patch)
treec4fd4ec790c6e5d6bc44e887090a8286e10fffd2 /client/src/app/shared/shared-forms
parent18490b07650d77d7fe376970b749af5a8c672fd6 (diff)
downloadPeerTube-c418d483004dfbae9ea38d54aa1577db46d34a8a.tar.gz
PeerTube-c418d483004dfbae9ea38d54aa1577db46d34a8a.tar.zst
PeerTube-c418d483004dfbae9ea38d54aa1577db46d34a8a.zip
Add new default different avatar for channel and account
Diffstat (limited to 'client/src/app/shared/shared-forms')
-rw-r--r--client/src/app/shared/shared-forms/select/select-channel.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-forms/select/select-channel.component.ts b/client/src/app/shared/shared-forms/select/select-channel.component.ts
index 1b0db9b6f..1d91d59bc 100644
--- a/client/src/app/shared/shared-forms/select/select-channel.component.ts
+++ b/client/src/app/shared/shared-forms/select/select-channel.component.ts
@@ -1,6 +1,6 @@
1import { Component, forwardRef, Input } from '@angular/core' 1import { Component, forwardRef, Input } from '@angular/core'
2import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' 2import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
3import { Actor } from '@app/shared/shared-main/account/actor.model' 3import { VideoChannel } from '@app/shared/shared-main'
4 4
5export type SelectChannelItem = { 5export type SelectChannelItem = {
6 id: number 6 id: number
@@ -34,7 +34,7 @@ export class SelectChannelComponent implements ControlValueAccessor {
34 34
35 get channels () { 35 get channels () {
36 return this.items.map(c => Object.assign(c, { 36 return this.items.map(c => Object.assign(c, {
37 avatarPath: c.avatarPath ? c.avatarPath : Actor.GET_DEFAULT_AVATAR_URL() 37 avatarPath: c.avatarPath ? c.avatarPath : VideoChannel.GET_DEFAULT_AVATAR_URL()
38 })) 38 }))
39 } 39 }
40 40