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/+my-library/my-videos | |
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/+my-library/my-videos')
-rw-r--r-- | client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts | 6 | ||||
-rw-r--r-- | client/src/app/+my-library/my-videos/my-videos.component.ts | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts b/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts index 8c1f94bf3..960c9a4f7 100644 --- a/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts +++ b/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts | |||
@@ -25,7 +25,7 @@ export class VideoChangeOwnershipComponent extends FormReactive implements OnIni | |||
25 | private notifier: Notifier, | 25 | private notifier: Notifier, |
26 | private userService: UserService, | 26 | private userService: UserService, |
27 | private modalService: NgbModal | 27 | private modalService: NgbModal |
28 | ) { | 28 | ) { |
29 | super() | 29 | super() |
30 | } | 30 | } |
31 | 31 | ||
@@ -49,7 +49,9 @@ export class VideoChangeOwnershipComponent extends FormReactive implements OnIni | |||
49 | const query = event.query | 49 | const query = event.query |
50 | this.userService.autocomplete(query) | 50 | this.userService.autocomplete(query) |
51 | .subscribe({ | 51 | .subscribe({ |
52 | next: usernames => this.usernamePropositions = usernames, | 52 | next: usernames => { |
53 | this.usernamePropositions = usernames | ||
54 | }, | ||
53 | 55 | ||
54 | error: err => this.notifier.error(err.message) | 56 | error: err => this.notifier.error(err.message) |
55 | }) | 57 | }) |
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index 4f9b71cc6..edb9392dd 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts | |||
@@ -49,7 +49,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
49 | 49 | ||
50 | inputFilters: AdvancedInputFilter[] = [ | 50 | inputFilters: AdvancedInputFilter[] = [ |
51 | { | 51 | { |
52 | queryParams: { 'search': 'isLive:true' }, | 52 | queryParams: { search: 'isLive:true' }, |
53 | label: $localize`Only live videos` | 53 | label: $localize`Only live videos` |
54 | } | 54 | } |
55 | ] | 55 | ] |
@@ -107,7 +107,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
107 | 107 | ||
108 | async deleteSelectedVideos () { | 108 | async deleteSelectedVideos () { |
109 | const toDeleteVideosIds = Object.keys(this.selection) | 109 | const toDeleteVideosIds = Object.keys(this.selection) |
110 | .filter(k => this.selection[ k ] === true) | 110 | .filter(k => this.selection[k] === true) |
111 | .map(k => parseInt(k, 10)) | 111 | .map(k => parseInt(k, 10)) |
112 | 112 | ||
113 | const res = await this.confirmService.confirm( | 113 | const res = await this.confirmService.confirm( |