diff options
Diffstat (limited to 'client/src/app/+verify-account/verify-account-email/verify-account-email.component.ts')
-rw-r--r-- | client/src/app/+verify-account/verify-account-email/verify-account-email.component.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/src/app/+verify-account/verify-account-email/verify-account-email.component.ts b/client/src/app/+verify-account/verify-account-email/verify-account-email.component.ts index 26b3bf4b1..f9ecf664b 100644 --- a/client/src/app/+verify-account/verify-account-email/verify-account-email.component.ts +++ b/client/src/app/+verify-account/verify-account-email/verify-account-email.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { I18n } from '@ngx-translate/i18n-polyfill' | 3 | import { I18n } from '@ngx-translate/i18n-polyfill' |
4 | import { NotificationsService } from 'angular2-notifications' | 4 | import { Notifier } from '@app/core' |
5 | import { UserService } from '@app/shared' | 5 | import { UserService } from '@app/shared' |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
@@ -17,7 +17,7 @@ export class VerifyAccountEmailComponent implements OnInit { | |||
17 | 17 | ||
18 | constructor ( | 18 | constructor ( |
19 | private userService: UserService, | 19 | private userService: UserService, |
20 | private notificationsService: NotificationsService, | 20 | private notifier: Notifier, |
21 | private router: Router, | 21 | private router: Router, |
22 | private route: ActivatedRoute, | 22 | private route: ActivatedRoute, |
23 | private i18n: I18n | 23 | private i18n: I18n |
@@ -25,12 +25,11 @@ export class VerifyAccountEmailComponent implements OnInit { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | ngOnInit () { | 27 | ngOnInit () { |
28 | |||
29 | this.userId = this.route.snapshot.queryParams['userId'] | 28 | this.userId = this.route.snapshot.queryParams['userId'] |
30 | this.verificationString = this.route.snapshot.queryParams['verificationString'] | 29 | this.verificationString = this.route.snapshot.queryParams['verificationString'] |
31 | 30 | ||
32 | if (!this.userId || !this.verificationString) { | 31 | if (!this.userId || !this.verificationString) { |
33 | this.notificationsService.error(this.i18n('Error'), this.i18n('Unable to find user id or verification string.')) | 32 | this.notifier.error(this.i18n('Unable to find user id or verification string.')) |
34 | } else { | 33 | } else { |
35 | this.verifyEmail() | 34 | this.verifyEmail() |
36 | } | 35 | } |
@@ -47,7 +46,7 @@ export class VerifyAccountEmailComponent implements OnInit { | |||
47 | }, | 46 | }, |
48 | 47 | ||
49 | err => { | 48 | err => { |
50 | this.notificationsService.error(this.i18n('Error'), err.message) | 49 | this.notifier.error(err.message) |
51 | } | 50 | } |
52 | ) | 51 | ) |
53 | } | 52 | } |