<div class="pt-3 border-top video-info-channel d-flex">
<div class="video-info-channel-left d-flex">
- <avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></avatar-channel>
+ <my-video-avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></my-video-avatar-channel>
<div class="video-info-channel-left-links ml-1">
<ng-container *ngIf="!isChannelDisplayNameGeneric()">
export * from './account.service'
export * from './actor-avatar-info.component'
export * from './actor.model'
-export * from './avatar.component'
+export * from './video-avatar-channel.component'
import { Video } from '../video/video.model'
@Component({
- selector: 'avatar-channel',
- templateUrl: './avatar.component.html',
- styleUrls: [ './avatar.component.scss' ]
+ selector: 'my-video-avatar-channel',
+ templateUrl: './video-avatar-channel.component.html',
+ styleUrls: [ './video-avatar-channel.component.scss' ]
})
-export class AvatarComponent implements OnInit {
+export class VideoAvatarChannelComponent implements OnInit {
@Input() video: Video
+ @Input() byAccount: string
+
@Input() size: 'md' | 'sm' = 'md'
@Input() genericChannel: boolean
NgbTooltipModule
} from '@ng-bootstrap/ng-bootstrap'
import { SharedGlobalIconModule } from '../shared-icons'
-import { AccountService, ActorAvatarInfoComponent, AvatarComponent } from './account'
+import { AccountService, ActorAvatarInfoComponent, VideoAvatarChannelComponent } from './account'
import {
BytesPipe,
DurationFormatterPipe,
],
declarations: [
- AvatarComponent,
+ VideoAvatarChannelComponent,
ActorAvatarInfoComponent,
FromNowPipe,
PrimeSharedModule,
- AvatarComponent,
+ VideoAvatarChannelComponent,
ActorAvatarInfoComponent,
FromNowPipe,
+import { AuthUser } from '@app/core'
+import { Account } from '@app/shared/shared-main/account/account.model'
+import { Actor } from '@app/shared/shared-main/account/actor.model'
+import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
import {
AbuseState,
ActorInfo,
FollowState,
UserNotification as UserNotificationServer,
UserNotificationType,
- VideoInfo,
- UserRight
+ UserRight,
+ VideoInfo
} from '@shared/models'
-import { Account, Actor, VideoChannel } from '@app/shared/shared-main'
-import { AuthUser } from '@app/core'
export class UserNotification implements UserNotificationServer {
id: number
import { AuthUser } from '@app/core'
import { User } from '@app/core/users/user.model'
import { durationToString, getAbsoluteAPIUrl, getAbsoluteEmbedUrl } from '@app/helpers'
+import { Account } from '@app/shared/shared-main/account/account.model'
+import { Actor } from '@app/shared/shared-main/account/actor.model'
+import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
import { peertubeTranslate } from '@shared/core-utils/i18n'
import {
Avatar,
VideoScheduleUpdate,
VideoState
} from '@shared/models'
-import { Account, Actor, VideoChannel } from '@app/shared/shared-main'
export class Video implements VideoServerModel {
byVideoChannel: string