diff options
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-profile')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts index b0d8494e7..ed0984bf7 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts | |||
@@ -2,7 +2,6 @@ import { Subject } from 'rxjs' | |||
2 | import { Component, Input, OnInit } from '@angular/core' | 2 | import { Component, Input, OnInit } from '@angular/core' |
3 | import { Notifier, User, UserService } from '@app/core' | 3 | import { Notifier, User, UserService } from '@app/core' |
4 | import { FormReactive, FormValidatorService, UserValidatorsService } from '@app/shared/shared-forms' | 4 | import { FormReactive, FormValidatorService, UserValidatorsService } from '@app/shared/shared-forms' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
6 | 5 | ||
7 | @Component({ | 6 | @Component({ |
8 | selector: 'my-account-profile', | 7 | selector: 'my-account-profile', |
@@ -19,9 +18,8 @@ export class MyAccountProfileComponent extends FormReactive implements OnInit { | |||
19 | protected formValidatorService: FormValidatorService, | 18 | protected formValidatorService: FormValidatorService, |
20 | private userValidatorsService: UserValidatorsService, | 19 | private userValidatorsService: UserValidatorsService, |
21 | private notifier: Notifier, | 20 | private notifier: Notifier, |
22 | private userService: UserService, | 21 | private userService: UserService |
23 | private i18n: I18n | 22 | ) { |
24 | ) { | ||
25 | super() | 23 | super() |
26 | } | 24 | } |
27 | 25 | ||
@@ -50,7 +48,7 @@ export class MyAccountProfileComponent extends FormReactive implements OnInit { | |||
50 | this.user.account.displayName = displayName | 48 | this.user.account.displayName = displayName |
51 | this.user.account.description = description | 49 | this.user.account.description = description |
52 | 50 | ||
53 | this.notifier.success(this.i18n('Profile updated.')) | 51 | this.notifier.success($localize`Profile updated.`) |
54 | }, | 52 | }, |
55 | 53 | ||
56 | err => this.error = err.message | 54 | err => this.error = err.message |