Fix my account subtitles

pull/1156/head
Chocobozzz 2018-10-01 09:02:27 +02:00
parent ed4c3c0910
commit 75f1d36218
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 4 deletions

View File

@ -43,13 +43,13 @@ export class MyAccountComponent implements OnInit, OnDestroy {
private updateLibraryLabel (url: string) { private updateLibraryLabel (url: string) {
const [ path ] = url.split('?') const [ path ] = url.split('?')
if (path === '/my-account/video-channels') { if (path.startsWith('/my-account/video-channels')) {
this.libraryLabel = this.i18n('Channels') this.libraryLabel = this.i18n('Channels')
} else if (path === '/my-account/videos') { } else if (path.startsWith('/my-account/videos')) {
this.libraryLabel = this.i18n('Videos') this.libraryLabel = this.i18n('Videos')
} else if (path === '/my-account/subscriptions') { } else if (path.startsWith('/my-account/subscriptions')) {
this.libraryLabel = this.i18n('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') this.libraryLabel = this.i18n('Video imports')
} else { } else {
this.libraryLabel = '' this.libraryLabel = ''