aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-14 17:28:54 +0200
committerChocobozzz <me@florianbigard.com>2020-08-14 17:28:54 +0200
commitb4c3c51dc874711febf43b719ca878436b31084d (patch)
tree19cc50cc8e28c9de33f001595a4c6d4ced9690cf /client/src/app/shared/shared-main/account/actor-avatar-info.component.ts
parent93e903ac165eed918986e415127d6ea9730e572c (diff)
downloadPeerTube-b4c3c51dc874711febf43b719ca878436b31084d.tar.gz
PeerTube-b4c3c51dc874711febf43b719ca878436b31084d.tar.zst
PeerTube-b4c3c51dc874711febf43b719ca878436b31084d.zip
Fix circular dependencies
Diffstat (limited to 'client/src/app/shared/shared-main/account/actor-avatar-info.component.ts')
-rw-r--r--client/src/app/shared/shared-main/account/actor-avatar-info.component.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts b/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts
index 3a86e5b21..5daa54cb5 100644
--- a/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts
+++ b/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts
@@ -1,7 +1,9 @@
1import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core' 1import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'
2import { Notifier, ServerService } from '@app/core' 2import { Notifier, ServerService } from '@app/core'
3import { Account, BytesPipe, VideoChannel } from '@app/shared/shared-main' 3import { getBytes } from '@root-helpers/bytes'
4import { ServerConfig } from '@shared/models' 4import { ServerConfig } from '@shared/models'
5import { VideoChannel } from '../video-channel/video-channel.model'
6import { Account } from '../account/account.model'
5 7
6@Component({ 8@Component({
7 selector: 'my-actor-avatar-info', 9 selector: 'my-actor-avatar-info',
@@ -18,13 +20,11 @@ export class ActorAvatarInfoComponent implements OnInit {
18 maxSizeText: string 20 maxSizeText: string
19 21
20 private serverConfig: ServerConfig 22 private serverConfig: ServerConfig
21 private bytesPipe: BytesPipe
22 23
23 constructor ( 24 constructor (
24 private serverService: ServerService, 25 private serverService: ServerService,
25 private notifier: Notifier 26 private notifier: Notifier
26 ) { 27 ) {
27 this.bytesPipe = new BytesPipe()
28 this.maxSizeText = $localize`max size` 28 this.maxSizeText = $localize`max size`
29 } 29 }
30 30
@@ -52,7 +52,7 @@ export class ActorAvatarInfoComponent implements OnInit {
52 } 52 }
53 53
54 get maxAvatarSizeInBytes () { 54 get maxAvatarSizeInBytes () {
55 return this.bytesPipe.transform(this.maxAvatarSize) 55 return getBytes(this.maxAvatarSize)
56 } 56 }
57 57
58 get avatarExtensions () { 58 get avatarExtensions () {