From: Chocobozzz Date: Fri, 25 May 2018 07:57:16 +0000 (+0200) Subject: Only use account name in routes X-Git-Tag: v1.0.0-beta.7~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad9e39fb815d85e5e718c40540fa75471474fa17;p=oweals%2Fpeertube.git Only use account name in routes --- 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 0852c4bb7..a6e6dd656 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 @@ -26,7 +26,7 @@ export class AccountVideoChannelsComponent implements OnInit { this.accountService.accountLoaded .pipe( tap(account => this.account = account), - flatMap(account => this.videoChannelService.listAccountVideoChannels(account.id)), + flatMap(account => this.videoChannelService.listAccountVideoChannels(account)), map(res => res.data) ) .subscribe(videoChannels => this.videoChannels = videoChannels) diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts index 7abf48826..20c8798d1 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts @@ -52,7 +52,7 @@ export class MyAccountVideoChannelsComponent implements OnInit { private loadVideoChannels () { this.authService.userInformationLoaded - .pipe(flatMap(() => this.videoChannelService.listAccountVideoChannels(this.user.account.id))) + .pipe(flatMap(() => this.videoChannelService.listAccountVideoChannels(this.user.account))) .subscribe(res => this.videoChannels = res.data) } } diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index da0d76acf..6b25d16ab 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html @@ -10,7 +10,7 @@
{{ videoChannel.followersCount }} subscribers
- + Created by {{ videoChannel.ownerBy }} Owner account avatar diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index 6a2a495a2..1a95477b7 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -14,7 +14,7 @@