diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-17 14:42:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-18 08:35:06 +0200 |
commit | 9df52d660feb722404be00a50f3c8a612bec1c15 (patch) | |
tree | dde52880fa012874d24c60f64eb596b0a789cc8b /client/src/app/+video-channels | |
parent | adb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff) | |
download | PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip |
Migrate client to eslint
Diffstat (limited to 'client/src/app/+video-channels')
3 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts index d83fc1324..ef8fd79b9 100644 --- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts +++ b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { forkJoin, Subscription } from 'rxjs' | 1 | import { forkJoin, Subscription } from 'rxjs' |
2 | import { first, tap } from 'rxjs/operators' | 2 | import { first } from 'rxjs/operators' |
3 | import { Component, ComponentFactoryResolver, OnDestroy, OnInit } from '@angular/core' | 3 | import { Component, ComponentFactoryResolver, OnDestroy, OnInit } from '@angular/core' |
4 | import { ActivatedRoute, Router } from '@angular/router' | 4 | import { ActivatedRoute, Router } from '@angular/router' |
5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' | 5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index b4d81fe39..064fbb6f5 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html | |||
@@ -114,7 +114,7 @@ | |||
114 | <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a> | 114 | <a [routerLink]="item.routerLink" routerLinkActive="active" class="title-page">{{ item.label }}</a> |
115 | </ng-template> | 115 | </ng-template> |
116 | 116 | ||
117 | <list-overflow [items]="links" [itemTemplate]="linkTemplate"></list-overflow> | 117 | <my-list-overflow [items]="links" [itemTemplate]="linkTemplate"></my-list-overflow> |
118 | </div> | 118 | </div> |
119 | 119 | ||
120 | <router-outlet></router-outlet> | 120 | <router-outlet></router-outlet> |
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index 6479644f1..272fc41d9 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts | |||
@@ -44,7 +44,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
44 | ngOnInit () { | 44 | ngOnInit () { |
45 | this.routeSub = this.route.params | 45 | this.routeSub = this.route.params |
46 | .pipe( | 46 | .pipe( |
47 | map(params => params[ 'videoChannelName' ]), | 47 | map(params => params['videoChannelName']), |
48 | distinctUntilChanged(), | 48 | distinctUntilChanged(), |
49 | switchMap(videoChannelName => this.videoChannelService.getVideoChannel(videoChannelName)), | 49 | switchMap(videoChannelName => this.videoChannelService.getVideoChannel(videoChannelName)), |
50 | catchError(err => this.restExtractor.redirectTo404IfNotFound(err, 'other', [ | 50 | catchError(err => this.restExtractor.redirectTo404IfNotFound(err, 'other', [ |
@@ -64,9 +64,9 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { | |||
64 | 64 | ||
65 | this.hotkeys = [ | 65 | this.hotkeys = [ |
66 | new Hotkey('S', (event: KeyboardEvent): boolean => { | 66 | new Hotkey('S', (event: KeyboardEvent): boolean => { |
67 | this.subscribeButton.subscribed ? | 67 | if (this.subscribeButton.subscribed) this.subscribeButton.unsubscribe() |
68 | this.subscribeButton.unsubscribe() : | 68 | else this.subscribeButton.subscribe() |
69 | this.subscribeButton.subscribe() | 69 | |
70 | return false | 70 | return false |
71 | }, undefined, $localize`Subscribe to the account`) | 71 | }, undefined, $localize`Subscribe to the account`) |
72 | ] | 72 | ] |