aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts')
-rw-r--r--client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts b/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts
index 0e62b5ca5..3bfffe2da 100644
--- a/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts
+++ b/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts
@@ -3,7 +3,6 @@ import { AuthService, Notifier } from '@app/core'
3import { FormReactive, FormValidatorService, VideoAcceptOwnershipValidatorsService } from '@app/shared/shared-forms' 3import { FormReactive, FormValidatorService, VideoAcceptOwnershipValidatorsService } from '@app/shared/shared-forms'
4import { VideoChannelService, VideoOwnershipService } from '@app/shared/shared-main' 4import { VideoChannelService, VideoOwnershipService } from '@app/shared/shared-main'
5import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 5import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
6import { I18n } from '@ngx-translate/i18n-polyfill'
7import { VideoChangeOwnership, VideoChannel } from '@shared/models' 6import { VideoChangeOwnership, VideoChannel } from '@shared/models'
8 7
9@Component({ 8@Component({
@@ -29,9 +28,8 @@ export class MyAccountAcceptOwnershipComponent extends FormReactive implements O
29 private notifier: Notifier, 28 private notifier: Notifier,
30 private authService: AuthService, 29 private authService: AuthService,
31 private videoChannelService: VideoChannelService, 30 private videoChannelService: VideoChannelService,
32 private modalService: NgbModal, 31 private modalService: NgbModal
33 private i18n: I18n 32 ) {
34 ) {
35 super() 33 super()
36 } 34 }
37 35
@@ -63,7 +61,7 @@ export class MyAccountAcceptOwnershipComponent extends FormReactive implements O
63 .acceptOwnership(videoChangeOwnership.id, { channelId: channel }) 61 .acceptOwnership(videoChangeOwnership.id, { channelId: channel })
64 .subscribe( 62 .subscribe(
65 () => { 63 () => {
66 this.notifier.success(this.i18n('Ownership accepted')) 64 this.notifier.success($localize`Ownership accepted`)
67 if (this.accepted) this.accepted.emit() 65 if (this.accepted) this.accepted.emit()
68 this.videoChangeOwnership = undefined 66 this.videoChangeOwnership = undefined
69 }, 67 },