1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

move sync to post login action

This commit is contained in:
Kyle Spearrin
2018-04-25 12:08:21 -04:00
parent e38fbfc3dd
commit b87f648eeb
3 changed files with 11 additions and 5 deletions

2
jslib

Submodule jslib updated: 31bd1f9423...05e6d2c0f0

View File

@@ -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() {

View File

@@ -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() {