aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/login/login.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/login/login.component.ts')
-rw-r--r--client/src/app/login/login.component.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts
index 18f8f69e5..fc2442c0e 100644
--- a/client/src/app/login/login.component.ts
+++ b/client/src/app/login/login.component.ts
@@ -1,7 +1,6 @@
1import { Component, ElementRef, OnInit, ViewChild } from '@angular/core' 1import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
2import { RedirectService, ServerService } from '@app/core' 2import { Notifier, RedirectService, ServerService } from '@app/core'
3import { UserService } from '@app/shared' 3import { UserService } from '@app/shared'
4import { NotificationsService } from 'angular2-notifications'
5import { AuthService } from '../core' 4import { AuthService } from '../core'
6import { FormReactive } from '../shared' 5import { FormReactive } from '../shared'
7import { I18n } from '@ngx-translate/i18n-polyfill' 6import { I18n } from '@ngx-translate/i18n-polyfill'
@@ -34,7 +33,7 @@ export class LoginComponent extends FormReactive implements OnInit {
34 private userService: UserService, 33 private userService: UserService,
35 private serverService: ServerService, 34 private serverService: ServerService,
36 private redirectService: RedirectService, 35 private redirectService: RedirectService,
37 private notificationsService: NotificationsService, 36 private notifier: Notifier,
38 private i18n: I18n 37 private i18n: I18n
39 ) { 38 ) {
40 super() 39 super()
@@ -82,11 +81,11 @@ export class LoginComponent extends FormReactive implements OnInit {
82 'An email with the reset password instructions will be sent to {{email}}.', 81 'An email with the reset password instructions will be sent to {{email}}.',
83 { email: this.forgotPasswordEmail } 82 { email: this.forgotPasswordEmail }
84 ) 83 )
85 this.notificationsService.success(this.i18n('Success'), message) 84 this.notifier.success(message)
86 this.hideForgotPasswordModal() 85 this.hideForgotPasswordModal()
87 }, 86 },
88 87
89 err => this.notificationsService.error(this.i18n('Error'), err.message) 88 err => this.notifier.error(err.message)
90 ) 89 )
91 } 90 }
92 91