31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
|
|
import { AuthService } from 'jslib/abstractions/auth.service';
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|
import { StorageService } from 'jslib/abstractions/storage.service';
|
|
import { SyncService } from 'jslib/abstractions/sync.service';
|
|
|
|
import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/login.component';
|
|
|
|
@Component({
|
|
selector: 'app-login',
|
|
templateUrl: 'login.component.html',
|
|
})
|
|
export class LoginComponent extends BaseLoginComponent {
|
|
constructor(authService: AuthService, router: Router,
|
|
platformUtilsService: PlatformUtilsService, i18nService: I18nService,
|
|
syncService: SyncService, storageService: StorageService) {
|
|
super(authService, router, platformUtilsService, i18nService, storageService);
|
|
super.onSuccessfulLogin = () => {
|
|
return syncService.fullSync(true);
|
|
};
|
|
super.successRoute = '/tabs/vault';
|
|
}
|
|
|
|
settings() {
|
|
this.router.navigate(['environment']);
|
|
}
|
|
}
|