X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccount-video-channels%2Faccount-video-channels.component.ts;h=631444398cc73e889fe1fc0a3966bad150dfb356;hb=cb0eda5602a21d1626a7face32de6153ed07b5f9;hp=59814a93d4aca2160486188ea26a96b6d2e97bcb;hpb=0e45e336f62a411b3c423be46d16252355c754d7;p=github%2FChocobozzz%2FPeerTube.git 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 } import { Account, AccountService, Video, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' import { MiniatureDisplayOptions } from '@app/shared/shared-video-miniature' import { NSFWPolicyType, VideoSortField } from '@shared/models' +import { SimpleMemoize } from '@app/helpers' @Component({ selector: 'my-account-video-channels', @@ -145,6 +146,7 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy { this.loadMoreChannels() } + @SimpleMemoize() getVideoChannelLink (videoChannel: VideoChannel) { return [ '/c', videoChannel.nameWithHost ] }