1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-28 17:27:50 +01:00

implement view reload

This commit is contained in:
Kyle Spearrin 2018-08-20 17:01:25 -04:00
parent 38371d2dec
commit 12d39edec6
4 changed files with 10 additions and 6 deletions

2
jslib

@ -1 +1 @@
Subproject commit 9bd8b73e27429b70a11e0016f794d1a976076c9f
Subproject commit bba52192dc9dff68cd4da80398a1127235ada06e

View File

@ -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);

View File

@ -257,8 +257,7 @@
</div>
<div *ngIf="cipher.hasPasswordHistory">
<b class="font-weight-semibold">{{'passwordHistory' | i18n}}:</b>
<a href="#" (click)="viewHistory()" appStopClick title="{{'passwordHistory' | i18n}}"
class="text-muted">
<a href="#" (click)="viewHistory()" appStopClick title="{{'passwordHistory' | i18n}}">
{{cipher.passwordHistory.length}}
</a>
</div>

View File

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