aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts')
-rw-r--r--client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts16
1 files changed, 8 insertions, 8 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}