diff --git a/jslib b/jslib index 31bd1f94..05e6d2c0 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 31bd1f9423f71ed749d27f9500eb88d272f112d1 +Subproject commit 05e6d2c0f0aa6cae6a5e53fac6dccf2a1d75a555 diff --git a/src/app/accounts/login.component.ts b/src/app/accounts/login.component.ts index 506c41fc..7db92506 100644 --- a/src/app/accounts/login.component.ts +++ b/src/app/accounts/login.component.ts @@ -27,9 +27,12 @@ export class LoginComponent extends BaseLoginComponent { constructor(authService: AuthService, router: Router, analytics: Angulartics2, toasterService: ToasterService, - i18nService: I18nService, syncService: SyncService, + i18nService: I18nService, private syncService: SyncService, private componentFactoryResolver: ComponentFactoryResolver) { - super(authService, router, analytics, toasterService, i18nService, syncService); + super(authService, router, analytics, toasterService, i18nService); + super.onSuccessfullLogin = () => { + return syncService.fullSync(true); + }; } settings() { diff --git a/src/app/accounts/two-factor.component.ts b/src/app/accounts/two-factor.component.ts index 7a035b27..29d9ce7f 100644 --- a/src/app/accounts/two-factor.component.ts +++ b/src/app/accounts/two-factor.component.ts @@ -34,10 +34,13 @@ export class TwoFactorComponent extends BaseTwoFactorComponent { constructor(authService: AuthService, router: Router, analytics: Angulartics2, toasterService: ToasterService, i18nService: I18nService, apiService: ApiService, - platformUtilsService: PlatformUtilsService, syncService: SyncService, + platformUtilsService: PlatformUtilsService, private syncService: SyncService, environmentService: EnvironmentService, private componentFactoryResolver: ComponentFactoryResolver) { super(authService, router, analytics, toasterService, i18nService, apiService, - platformUtilsService, syncService, window, environmentService); + platformUtilsService, window, environmentService); + super.onSuccessfullLogin = () => { + return syncService.fullSync(true); + }; } anotherMethod() {