diff options
Diffstat (limited to 'client/src/app/+my-library/my-ownership')
-rw-r--r-- | client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts | 8 | ||||
-rw-r--r-- | client/src/app/+my-library/my-ownership/my-ownership.component.ts | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts index 7889d0985..b92377bca 100644 --- a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts +++ b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts | |||
@@ -64,14 +64,14 @@ export class MyAcceptOwnershipComponent extends FormReactive implements OnInit { | |||
64 | const videoChangeOwnership = this.videoChangeOwnership | 64 | const videoChangeOwnership = this.videoChangeOwnership |
65 | this.videoOwnershipService | 65 | this.videoOwnershipService |
66 | .acceptOwnership(videoChangeOwnership.id, { channelId: channel }) | 66 | .acceptOwnership(videoChangeOwnership.id, { channelId: channel }) |
67 | .subscribe( | 67 | .subscribe({ |
68 | () => { | 68 | next: () => { |
69 | this.notifier.success($localize`Ownership accepted`) | 69 | this.notifier.success($localize`Ownership accepted`) |
70 | if (this.accepted) this.accepted.emit() | 70 | if (this.accepted) this.accepted.emit() |
71 | this.videoChangeOwnership = undefined | 71 | this.videoChangeOwnership = undefined |
72 | }, | 72 | }, |
73 | 73 | ||
74 | err => this.notifier.error(err.message) | 74 | error: err => this.notifier.error(err.message) |
75 | ) | 75 | }) |
76 | } | 76 | } |
77 | } | 77 | } |
diff --git a/client/src/app/+my-library/my-ownership/my-ownership.component.ts b/client/src/app/+my-library/my-ownership/my-ownership.component.ts index aaf028474..7ea940ceb 100644 --- a/client/src/app/+my-library/my-ownership/my-ownership.component.ts +++ b/client/src/app/+my-library/my-ownership/my-ownership.component.ts | |||
@@ -53,16 +53,16 @@ export class MyOwnershipComponent extends RestTable implements OnInit { | |||
53 | 53 | ||
54 | refuse (videoChangeOwnership: VideoChangeOwnership) { | 54 | refuse (videoChangeOwnership: VideoChangeOwnership) { |
55 | this.videoOwnershipService.refuseOwnership(videoChangeOwnership.id) | 55 | this.videoOwnershipService.refuseOwnership(videoChangeOwnership.id) |
56 | .subscribe( | 56 | .subscribe({ |
57 | () => this.reloadData(), | 57 | next: () => this.reloadData(), |
58 | err => this.notifier.error(err.message) | 58 | error: err => this.notifier.error(err.message) |
59 | ) | 59 | }) |
60 | } | 60 | } |
61 | 61 | ||
62 | protected reloadData () { | 62 | protected reloadData () { |
63 | return this.videoOwnershipService.getOwnershipChanges(this.pagination, this.sort) | 63 | return this.videoOwnershipService.getOwnershipChanges(this.pagination, this.sort) |
64 | .subscribe( | 64 | .subscribe({ |
65 | resultList => { | 65 | next: resultList => { |
66 | this.videoChangeOwnerships = resultList.data.map(change => ({ | 66 | this.videoChangeOwnerships = resultList.data.map(change => ({ |
67 | ...change, | 67 | ...change, |
68 | initiatorAccount: new Account(change.initiatorAccount), | 68 | initiatorAccount: new Account(change.initiatorAccount), |
@@ -71,7 +71,7 @@ export class MyOwnershipComponent extends RestTable implements OnInit { | |||
71 | this.totalRecords = resultList.total | 71 | this.totalRecords = resultList.total |
72 | }, | 72 | }, |
73 | 73 | ||
74 | err => this.notifier.error(err.message) | 74 | error: err => this.notifier.error(err.message) |
75 | ) | 75 | }) |
76 | } | 76 | } |
77 | } | 77 | } |