diff options
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r-- | client/src/app/+accounts/account-videos/account-videos.component.ts | 9 | ||||
-rw-r--r-- | client/src/app/+accounts/accounts-routing.module.ts | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts index 13b634a01..7535eef08 100644 --- a/client/src/app/+accounts/account-videos/account-videos.component.ts +++ b/client/src/app/+accounts/account-videos/account-videos.component.ts | |||
@@ -1,6 +1,5 @@ | |||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 1 | import { Component, OnDestroy, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { Location } from '@angular/common' | ||
4 | import { immutableAssign } from '@app/shared/misc/utils' | 3 | import { immutableAssign } from '@app/shared/misc/utils' |
5 | import { AuthService } from '../../core/auth' | 4 | import { AuthService } from '../../core/auth' |
6 | import { ConfirmService } from '../../core/confirm' | 5 | import { ConfirmService } from '../../core/confirm' |
@@ -12,7 +11,7 @@ import { tap } from 'rxjs/operators' | |||
12 | import { I18n } from '@ngx-translate/i18n-polyfill' | 11 | import { I18n } from '@ngx-translate/i18n-polyfill' |
13 | import { Subscription } from 'rxjs' | 12 | import { Subscription } from 'rxjs' |
14 | import { ScreenService } from '@app/shared/misc/screen.service' | 13 | import { ScreenService } from '@app/shared/misc/screen.service' |
15 | import { Notifier } from '@app/core' | 14 | import { Notifier, ServerService } from '@app/core' |
16 | 15 | ||
17 | @Component({ | 16 | @Component({ |
18 | selector: 'my-account-videos', | 17 | selector: 'my-account-videos', |
@@ -25,7 +24,6 @@ import { Notifier } from '@app/core' | |||
25 | export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { | 24 | export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { |
26 | titlePage: string | 25 | titlePage: string |
27 | marginContent = false // Disable margin | 26 | marginContent = false // Disable margin |
28 | currentRoute = '/accounts/videos' | ||
29 | loadOnInit = false | 27 | loadOnInit = false |
30 | 28 | ||
31 | private account: Account | 29 | private account: Account |
@@ -33,13 +31,13 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
33 | 31 | ||
34 | constructor ( | 32 | constructor ( |
35 | protected router: Router, | 33 | protected router: Router, |
34 | protected serverService: ServerService, | ||
36 | protected route: ActivatedRoute, | 35 | protected route: ActivatedRoute, |
37 | protected authService: AuthService, | 36 | protected authService: AuthService, |
38 | protected notifier: Notifier, | 37 | protected notifier: Notifier, |
39 | protected confirmService: ConfirmService, | 38 | protected confirmService: ConfirmService, |
40 | protected location: Location, | ||
41 | protected screenService: ScreenService, | 39 | protected screenService: ScreenService, |
42 | protected i18n: I18n, | 40 | private i18n: I18n, |
43 | private accountService: AccountService, | 41 | private accountService: AccountService, |
44 | private videoService: VideoService | 42 | private videoService: VideoService |
45 | ) { | 43 | ) { |
@@ -55,7 +53,6 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
55 | this.accountSub = this.accountService.accountLoaded | 53 | this.accountSub = this.accountService.accountLoaded |
56 | .subscribe(account => { | 54 | .subscribe(account => { |
57 | this.account = account | 55 | this.account = account |
58 | this.currentRoute = '/accounts/' + this.account.nameWithHost + '/videos' | ||
59 | 56 | ||
60 | this.reloadVideos() | 57 | this.reloadVideos() |
61 | this.generateSyndicationList() | 58 | this.generateSyndicationList() |
diff --git a/client/src/app/+accounts/accounts-routing.module.ts b/client/src/app/+accounts/accounts-routing.module.ts index ffe606b43..531d763c4 100644 --- a/client/src/app/+accounts/accounts-routing.module.ts +++ b/client/src/app/+accounts/accounts-routing.module.ts | |||
@@ -23,6 +23,10 @@ const accountsRoutes: Routes = [ | |||
23 | data: { | 23 | data: { |
24 | meta: { | 24 | meta: { |
25 | title: 'Account videos' | 25 | title: 'Account videos' |
26 | }, | ||
27 | reuse: { | ||
28 | enabled: true, | ||
29 | key: 'account-videos-list' | ||
26 | } | 30 | } |
27 | } | 31 | } |
28 | }, | 32 | }, |