From: Chocobozzz Date: Mon, 1 Oct 2018 07:02:27 +0000 (+0200) Subject: Fix my account subtitles X-Git-Tag: v1.0.0-beta.16~10 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=75f1d36218e2f2011845fcbf2e417c4524230668;p=github%2FChocobozzz%2FPeerTube.git Fix my account subtitles --- diff --git a/client/src/app/+my-account/my-account.component.ts b/client/src/app/+my-account/my-account.component.ts index fed6e6b04..bad60a8fb 100644 --- a/client/src/app/+my-account/my-account.component.ts +++ b/client/src/app/+my-account/my-account.component.ts @@ -43,13 +43,13 @@ export class MyAccountComponent implements OnInit, OnDestroy { private updateLibraryLabel (url: string) { const [ path ] = url.split('?') - if (path === '/my-account/video-channels') { + if (path.startsWith('/my-account/video-channels')) { this.libraryLabel = this.i18n('Channels') - } else if (path === '/my-account/videos') { + } else if (path.startsWith('/my-account/videos')) { this.libraryLabel = this.i18n('Videos') - } else if (path === '/my-account/subscriptions') { + } else if (path.startsWith('/my-account/subscriptions')) { this.libraryLabel = this.i18n('Subscriptions') - } else if (path === '/my-account/video-imports') { + } else if (path.startsWith('/my-account/video-imports')) { this.libraryLabel = this.i18n('Video imports') } else { this.libraryLabel = ''