move sync to post login action
This commit is contained in:
parent
d7c6e3c9be
commit
e57a38fbb1
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 31bd1f9423f71ed749d27f9500eb88d272f112d1
|
||||
Subproject commit 05e6d2c0f0aa6cae6a5e53fac6dccf2a1d75a555
|
|
@ -17,9 +17,12 @@ import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/l
|
|||
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);
|
||||
this.successRoute = '/tabs/vault';
|
||||
i18nService: I18nService, private syncService: SyncService) {
|
||||
super(authService, router, analytics, toasterService, i18nService);
|
||||
super.onSuccessfullLogin = () => {
|
||||
return syncService.fullSync(true);
|
||||
};
|
||||
super.successRoute = '/tabs/vault';
|
||||
}
|
||||
|
||||
settings() {
|
||||
|
|
|
@ -42,8 +42,11 @@ export class TwoFactorComponent extends BaseTwoFactorComponent {
|
|||
environmentService: EnvironmentService, private ngZone: NgZone,
|
||||
private broadcasterService: BroadcasterService, private changeDetectorRef: ChangeDetectorRef) {
|
||||
super(authService, router, analytics, toasterService, i18nService, apiService,
|
||||
platformUtilsService, syncService, window, environmentService);
|
||||
this.successRoute = '/tabs/vault';
|
||||
platformUtilsService, window, environmentService);
|
||||
super.onSuccessfullLogin = () => {
|
||||
return syncService.fullSync(true);
|
||||
};
|
||||
super.successRoute = '/tabs/vault';
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
|
|
Loading…
Reference in New Issue