diff --git a/jslib b/jslib index 9bd8b73e..bba52192 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 9bd8b73e27429b70a11e0016f794d1a976076c9f +Subproject commit bba52192dc9dff68cd4da80398a1127235ada06e diff --git a/src/app/services.module.ts b/src/app/services.module.ts index 4468414f..e9ac07c4 100644 --- a/src/app/services.module.ts +++ b/src/app/services.module.ts @@ -91,7 +91,6 @@ const tokenService = new TokenService(storageService); const appIdService = new AppIdService(storageService); const apiService = new ApiService(tokenService, platformUtilsService, async (expired: boolean) => messagingService.send('logout', { expired: expired })); -const environmentService = new EnvironmentService(apiService, storageService); const userService = new UserService(tokenService, storageService); const settingsService = new SettingsService(userService, storageService); export let searchService: SearchService = null; @@ -114,6 +113,7 @@ const authService = new AuthService(cryptoService, apiService, const exportService = new ExportService(folderService, cipherService, apiService); const auditService = new AuditService(cryptoFunctionService, apiService); const notificationsService = new NotificationsService(userService, tokenService, syncService, appIdService); +const environmentService = new EnvironmentService(apiService, storageService, notificationsService); const analytics = new Analytics(window, () => isDev(), platformUtilsService, storageService, appIdService); containerService.attachToWindow(window); diff --git a/src/app/vault/view.component.html b/src/app/vault/view.component.html index 5a22b60b..ae73d032 100644 --- a/src/app/vault/view.component.html +++ b/src/app/vault/view.component.html @@ -257,8 +257,7 @@
{{'passwordHistory' | i18n}}: - + {{cipher.passwordHistory.length}}
diff --git a/src/app/vault/view.component.ts b/src/app/vault/view.component.ts index 72aaf265..b546fd1f 100644 --- a/src/app/vault/view.component.ts +++ b/src/app/vault/view.component.ts @@ -1,6 +1,8 @@ import { + ChangeDetectorRef, Component, EventEmitter, + NgZone, OnChanges, Output, } from '@angular/core'; @@ -16,6 +18,8 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { TokenService } from 'jslib/abstractions/token.service'; import { TotpService } from 'jslib/abstractions/totp.service'; +import { BroadcasterService } from 'jslib/angular/services/broadcaster.service'; + import { ViewComponent as BaseViewComponent } from 'jslib/angular/components/view.component'; import { CipherView } from 'jslib/models/view/cipherView'; @@ -31,9 +35,10 @@ export class ViewComponent extends BaseViewComponent implements OnChanges { tokenService: TokenService, toasterService: ToasterService, cryptoService: CryptoService, platformUtilsService: PlatformUtilsService, i18nService: I18nService, analytics: Angulartics2, - auditService: AuditService) { + auditService: AuditService, broadcasterService: BroadcasterService, + ngZone: NgZone, changeDetectorRef: ChangeDetectorRef) { super(cipherService, totpService, tokenService, toasterService, cryptoService, platformUtilsService, - i18nService, analytics, auditService, window); + i18nService, analytics, auditService, window, broadcasterService, ngZone, changeDetectorRef); } async ngOnChanges() {