2018-04-04 04:14:54 +02:00
|
|
|
import * as template from './login.component.html';
|
|
|
|
|
2018-04-04 15:19:28 +02:00
|
|
|
import { Component } from '@angular/core';
|
2018-04-04 04:14:54 +02:00
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
|
|
|
import { ToasterService } from 'angular2-toaster';
|
|
|
|
import { Angulartics2 } from 'angulartics2';
|
|
|
|
|
|
|
|
import { AuthService } from 'jslib/abstractions/auth.service';
|
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
|
|
|
import { SyncService } from 'jslib/abstractions/sync.service';
|
|
|
|
|
2018-04-04 15:19:28 +02:00
|
|
|
import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/login.component';
|
|
|
|
|
2018-04-04 04:14:54 +02:00
|
|
|
@Component({
|
|
|
|
selector: 'app-login',
|
|
|
|
template: template,
|
|
|
|
})
|
2018-04-04 15:19:28 +02:00
|
|
|
export class LoginComponent extends BaseLoginComponent {
|
|
|
|
constructor(authService: AuthService, router: Router,
|
|
|
|
analytics: Angulartics2, toasterService: ToasterService,
|
|
|
|
i18nService: I18nService, syncService: SyncService) {
|
|
|
|
super(authService, router, analytics, toasterService, i18nService, syncService);
|
2018-04-05 04:59:42 +02:00
|
|
|
this.successRoute = '/tabs/vault';
|
2018-04-04 04:14:54 +02:00
|
|
|
}
|
|
|
|
|
2018-04-04 15:19:28 +02:00
|
|
|
settings() {
|
2018-04-04 16:08:30 +02:00
|
|
|
this.router.navigate(['environment']);
|
2018-04-04 04:14:54 +02:00
|
|
|
}
|
|
|
|
}
|