]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+accounts/account-videos/account-videos.component.ts
Move user moderation tool in a separate component
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / account-videos / account-videos.component.ts
index 5e3dbb6b386921d161aebe2a46e990347f443b53..e5c1f58b0a0ce01c7807693e6c6096befa6abfc4 100644 (file)
@@ -12,6 +12,7 @@ import { AccountService } from '@app/shared/account/account.service'
 import { tap } from 'rxjs/operators'
 import { I18n } from '@ngx-translate/i18n-polyfill'
 import { Subscription } from 'rxjs'
+import { ScreenService } from '@app/shared/misc/screen.service'
 
 @Component({
   selector: 'my-account-videos',
@@ -24,7 +25,7 @@ import { Subscription } from 'rxjs'
 export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
   titlePage: string
   marginContent = false // Disable margin
-  currentRoute = '/account/videos'
+  currentRoute = '/accounts/videos'
   loadOnInit = false
 
   private account: Account
@@ -37,6 +38,7 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit,
     protected notificationsService: NotificationsService,
     protected confirmService: ConfirmService,
     protected location: Location,
+    protected screenService: ScreenService,
     protected i18n: I18n,
     private accountService: AccountService,
     private videoService: VideoService
@@ -53,7 +55,7 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit,
     this.accountSub = this.accountService.accountLoaded
       .subscribe(account => {
         this.account = account
-        this.currentRoute = '/account/' + this.account.nameWithHost + '/videos'
+        this.currentRoute = '/accounts/' + this.account.nameWithHost + '/videos'
 
         this.reloadVideos()
         this.generateSyndicationList()