diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-11 11:52:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-11 11:52:34 +0100 |
commit | 88108880bbdba473cfe36ecbebc1c3c4f972e102 (patch) | |
tree | b242efb3b4f0d7e49d88f2d1f2063b5b3b0489c0 /client/src/app/+verify-account/verify-account-email | |
parent | 53a94c7cfa8368da4cd248d65df8346905938f0c (diff) | |
parent | 9b712a2017e4ab3cf12cd6bd58278905520159d0 (diff) | |
download | PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.gz PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.zst PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.zip |
Merge branch 'develop' into pr/1217
Diffstat (limited to 'client/src/app/+verify-account/verify-account-email')
-rw-r--r-- | client/src/app/+verify-account/verify-account-email/verify-account-email.component.html | 2 | ||||
-rw-r--r-- | client/src/app/+verify-account/verify-account-email/verify-account-email.component.ts | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/client/src/app/+verify-account/verify-account-email/verify-account-email.component.html b/client/src/app/+verify-account/verify-account-email/verify-account-email.component.html index 30ace5e10..a83d4a3c2 100644 --- a/client/src/app/+verify-account/verify-account-email/verify-account-email.component.html +++ b/client/src/app/+verify-account/verify-account-email/verify-account-email.component.html | |||
@@ -9,7 +9,7 @@ | |||
9 | <ng-template #verificationError> | 9 | <ng-template #verificationError> |
10 | <div> | 10 | <div> |
11 | <span i18n>An error occurred. </span> | 11 | <span i18n>An error occurred. </span> |
12 | <a i18n routerLink="/verify-account/ask-email">Request new verification email.</a> | 12 | <a i18n routerLink="/verify-account/ask-send-email">Request new verification email.</a> |
13 | </div> | 13 | </div> |
14 | </ng-template> | 14 | </ng-template> |
15 | </div> | 15 | </div> |
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 | } |