]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix my account subtitles
authorChocobozzz <me@florianbigard.com>
Mon, 1 Oct 2018 07:02:27 +0000 (09:02 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 1 Oct 2018 07:02:27 +0000 (09:02 +0200)
client/src/app/+my-account/my-account.component.ts

index fed6e6b0494a7f7572350f88925689fdcf6e85b6..bad60a8fb750e6b9bd4598accb4ae6d9faad1b11 100644 (file)
@@ -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 = ''