aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-13 14:27:35 +0100
committerChocobozzz <me@florianbigard.com>2023-02-13 14:27:48 +0100
commit57d64f30e30b57ba5dc035fcaf38895d775412bd (patch)
tree596f3f416576598be4d1b640d54df0de401b2ce5 /client/src/app/+accounts
parent587aa74ac3d8f2e1fdd8754d60c7a8c38ce30b88 (diff)
downloadPeerTube-57d64f30e30b57ba5dc035fcaf38895d775412bd.tar.gz
PeerTube-57d64f30e30b57ba5dc035fcaf38895d775412bd.tar.zst
PeerTube-57d64f30e30b57ba5dc035fcaf38895d775412bd.zip
Improve channel's avatar display performance
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r--client/src/app/+accounts/account-video-channels/account-video-channels.component.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
index 59814a93d..631444398 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
@@ -5,6 +5,7 @@ import { ComponentPagination, hasMoreItems, MarkdownService, User, UserService }
5import { Account, AccountService, Video, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' 5import { Account, AccountService, Video, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main'
6import { MiniatureDisplayOptions } from '@app/shared/shared-video-miniature' 6import { MiniatureDisplayOptions } from '@app/shared/shared-video-miniature'
7import { NSFWPolicyType, VideoSortField } from '@shared/models' 7import { NSFWPolicyType, VideoSortField } from '@shared/models'
8import { SimpleMemoize } from '@app/helpers'
8 9
9@Component({ 10@Component({
10 selector: 'my-account-video-channels', 11 selector: 'my-account-video-channels',
@@ -145,6 +146,7 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy {
145 this.loadMoreChannels() 146 this.loadMoreChannels()
146 } 147 }
147 148
149 @SimpleMemoize()
148 getVideoChannelLink (videoChannel: VideoChannel) { 150 getVideoChannelLink (videoChannel: VideoChannel) {
149 return [ '/c', videoChannel.nameWithHost ] 151 return [ '/c', videoChannel.nameWithHost ]
150 } 152 }