From c418d483004dfbae9ea38d54aa1577db46d34a8a Mon Sep 17 00:00:00 2001 From: kimsible Date: Wed, 18 Nov 2020 19:20:05 +0100 Subject: Add new default different avatar for channel and account --- client/src/app/shared/shared-forms/select/select-channel.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/shared-forms/select') 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 @@ import { Component, forwardRef, Input } from '@angular/core' import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' -import { Actor } from '@app/shared/shared-main/account/actor.model' +import { VideoChannel } from '@app/shared/shared-main' export type SelectChannelItem = { id: number @@ -34,7 +34,7 @@ export class SelectChannelComponent implements ControlValueAccessor { get channels () { return this.items.map(c => Object.assign(c, { - avatarPath: c.avatarPath ? c.avatarPath : Actor.GET_DEFAULT_AVATAR_URL() + avatarPath: c.avatarPath ? c.avatarPath : VideoChannel.GET_DEFAULT_AVATAR_URL() })) } -- cgit v1.2.3