From ad9e39fb815d85e5e718c40540fa75471474fa17 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 May 2018 09:57:16 +0200 Subject: Only use account name in routes --- .../account-video-channels.component.ts | 2 +- .../my-account-video-channels.component.ts | 2 +- .../+video-channels/video-channels.component.html | 2 +- client/src/app/menu/menu.component.html | 2 +- client/src/app/shared/account/account.model.ts | 2 ++ client/src/app/shared/users/user.model.ts | 21 ++++++++++++++++++--- .../shared/video-channel/video-channel.service.ts | 5 +++-- client/src/app/shared/video/video-details.model.ts | 4 ++-- .../app/shared/video/video-miniature.component.html | 4 ++-- client/src/app/shared/video/video.service.ts | 2 +- .../videos/+video-edit/video-update.component.ts | 2 +- .../videos/+video-watch/video-watch.component.html | 2 +- 12 files changed, 34 insertions(+), 16 deletions(-) (limited to 'client/src/app') 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 @@