diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-17 11:27:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-17 14:01:45 +0200 |
commit | 1378c0d343028f3d40d7d795422684ab9e6a1599 (patch) | |
tree | 08062b84a38a7e2dfe0aa674e7ca8e1b7321044e /client/src/app/+my-library/my-videos | |
parent | c186a67f90203af6bfa434f026efdc99193bcd65 (diff) | |
download | PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.gz PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.tar.zst PeerTube-1378c0d343028f3d40d7d795422684ab9e6a1599.zip |
Fix client lint
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 | 16 | ||||
-rw-r--r-- | client/src/app/+my-library/my-videos/my-videos.component.ts | 16 |
2 files changed, 16 insertions, 16 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 84237dee1..8c1f94bf3 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 | |||
@@ -48,11 +48,11 @@ export class VideoChangeOwnershipComponent extends FormReactive implements OnIni | |||
48 | search (event: { query: string }) { | 48 | search (event: { query: string }) { |
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 | usernames => this.usernamePropositions = usernames, | 52 | next: usernames => this.usernamePropositions = usernames, |
53 | 53 | ||
54 | err => this.notifier.error(err.message) | 54 | error: err => this.notifier.error(err.message) |
55 | ) | 55 | }) |
56 | } | 56 | } |
57 | 57 | ||
58 | changeOwnership () { | 58 | changeOwnership () { |
@@ -60,10 +60,10 @@ export class VideoChangeOwnershipComponent extends FormReactive implements OnIni | |||
60 | 60 | ||
61 | this.videoOwnershipService | 61 | this.videoOwnershipService |
62 | .changeOwnership(this.video.id, username) | 62 | .changeOwnership(this.video.id, username) |
63 | .subscribe( | 63 | .subscribe({ |
64 | () => this.notifier.success($localize`Ownership change request sent.`), | 64 | next: () => this.notifier.success($localize`Ownership change request sent.`), |
65 | 65 | ||
66 | err => this.notifier.error(err.message) | 66 | error: err => this.notifier.error(err.message) |
67 | ) | 67 | }) |
68 | } | 68 | } |
69 | } | 69 | } |
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 1e4a4406d..4f9b71cc6 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 | |||
@@ -126,14 +126,14 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
126 | 126 | ||
127 | concat(...observables) | 127 | concat(...observables) |
128 | .pipe(toArray()) | 128 | .pipe(toArray()) |
129 | .subscribe( | 129 | .subscribe({ |
130 | () => { | 130 | next: () => { |
131 | this.notifier.success($localize`${toDeleteVideosIds.length} videos deleted.`) | 131 | this.notifier.success($localize`${toDeleteVideosIds.length} videos deleted.`) |
132 | this.selection = {} | 132 | this.selection = {} |
133 | }, | 133 | }, |
134 | 134 | ||
135 | err => this.notifier.error(err.message) | 135 | error: err => this.notifier.error(err.message) |
136 | ) | 136 | }) |
137 | } | 137 | } |
138 | 138 | ||
139 | async deleteVideo (video: Video) { | 139 | async deleteVideo (video: Video) { |
@@ -144,14 +144,14 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
144 | if (res === false) return | 144 | if (res === false) return |
145 | 145 | ||
146 | this.videoService.removeVideo(video.id) | 146 | this.videoService.removeVideo(video.id) |
147 | .subscribe( | 147 | .subscribe({ |
148 | () => { | 148 | next: () => { |
149 | this.notifier.success($localize`Video ${video.name} deleted.`) | 149 | this.notifier.success($localize`Video ${video.name} deleted.`) |
150 | this.removeVideoFromArray(video.id) | 150 | this.removeVideoFromArray(video.id) |
151 | }, | 151 | }, |
152 | 152 | ||
153 | error => this.notifier.error(error.message) | 153 | error: err => this.notifier.error(err.message) |
154 | ) | 154 | }) |
155 | } | 155 | } |
156 | 156 | ||
157 | changeOwnership (video: Video) { | 157 | changeOwnership (video: Video) { |