From 3a1c05050284be566d6a045acb75d573a96d6020 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 29 Nov 2021 10:14:04 +1000 Subject: [PATCH] Update jslib (#2202) * Update jslib * Update constructors * Update jslib --- jslib | 2 +- src/popup/accounts/lock.component.ts | 10 +++++++--- src/popup/accounts/login.component.ts | 9 ++++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/jslib b/jslib index b4f475251aa..78429aa7201 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit b4f475251aa6817403117b71fb5a8836cdae9c75 +Subproject commit 78429aa7201989ad74a9ca36cc6832fcce0d4aee diff --git a/src/popup/accounts/lock.component.ts b/src/popup/accounts/lock.component.ts index ec7d48ff9be..e074f8abdda 100644 --- a/src/popup/accounts/lock.component.ts +++ b/src/popup/accounts/lock.component.ts @@ -1,4 +1,7 @@ -import { Component } from '@angular/core'; +import { + Component, + NgZone, +} from '@angular/core'; import { Router } from '@angular/router'; import Swal from 'sweetalert2'; @@ -31,10 +34,11 @@ export class LockComponent extends BaseLockComponent { userService: UserService, cryptoService: CryptoService, storageService: StorageService, vaultTimeoutService: VaultTimeoutService, environmentService: EnvironmentService, stateService: StateService, - apiService: ApiService, logService: LogService, keyConnectorService: KeyConnectorService) { + apiService: ApiService, logService: LogService, keyConnectorService: KeyConnectorService, + ngZone: NgZone) { super(router, i18nService, platformUtilsService, messagingService, userService, cryptoService, storageService, vaultTimeoutService, environmentService, stateService, apiService, logService, - keyConnectorService); + keyConnectorService, ngZone); this.successRoute = '/tabs/current'; this.isInitialLockScreen = (window as any).previousPopupUrl == null; } diff --git a/src/popup/accounts/login.component.ts b/src/popup/accounts/login.component.ts index 460666e5738..e6d1dcef242 100644 --- a/src/popup/accounts/login.component.ts +++ b/src/popup/accounts/login.component.ts @@ -1,4 +1,7 @@ -import { Component } from '@angular/core'; +import { + Component, + NgZone, +} from '@angular/core'; import { Router } from '@angular/router'; import { AuthService } from 'jslib-common/abstractions/auth.service'; @@ -24,9 +27,9 @@ export class LoginComponent extends BaseLoginComponent { protected stateService: StateService, protected environmentService: EnvironmentService, protected passwordGenerationService: PasswordGenerationService, protected cryptoFunctionService: CryptoFunctionService, storageService: StorageService, - syncService: SyncService, logService: LogService) { + syncService: SyncService, logService: LogService, ngZone: NgZone) { super(authService, router, platformUtilsService, i18nService, stateService, environmentService, - passwordGenerationService, cryptoFunctionService, storageService, logService); + passwordGenerationService, cryptoFunctionService, storageService, logService, ngZone); super.onSuccessfulLogin = async () => { await syncService.fullSync(true); };