diff options
Diffstat (limited to 'client/src/app/+accounts/account-about/account-about.component.ts')
-rw-r--r-- | client/src/app/+accounts/account-about/account-about.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/+accounts/account-about/account-about.component.ts b/client/src/app/+accounts/account-about/account-about.component.ts index f063df392..4086510ba 100644 --- a/client/src/app/+accounts/account-about/account-about.component.ts +++ b/client/src/app/+accounts/account-about/account-about.component.ts | |||
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core' | |||
2 | import { ActivatedRoute } from '@angular/router' | 2 | import { ActivatedRoute } from '@angular/router' |
3 | import { Account } from '@app/shared/account/account.model' | 3 | import { Account } from '@app/shared/account/account.model' |
4 | import { AccountService } from '@app/shared/account/account.service' | 4 | import { AccountService } from '@app/shared/account/account.service' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
5 | 6 | ||
6 | @Component({ | 7 | @Component({ |
7 | selector: 'my-account-about', | 8 | selector: 'my-account-about', |
@@ -12,7 +13,8 @@ export class AccountAboutComponent implements OnInit { | |||
12 | account: Account | 13 | account: Account |
13 | 14 | ||
14 | constructor ( | 15 | constructor ( |
15 | protected route: ActivatedRoute, | 16 | private route: ActivatedRoute, |
17 | private i18n: I18n, | ||
16 | private accountService: AccountService | 18 | private accountService: AccountService |
17 | ) { } | 19 | ) { } |
18 | 20 | ||
@@ -25,6 +27,6 @@ export class AccountAboutComponent implements OnInit { | |||
25 | getAccountDescription () { | 27 | getAccountDescription () { |
26 | if (this.account.description) return this.account.description | 28 | if (this.account.description) return this.account.description |
27 | 29 | ||
28 | return 'No description' | 30 | return this.i18n('No description') |
29 | } | 31 | } |
30 | } | 32 | } |