mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
implement view reload
This commit is contained in:
parent
38371d2dec
commit
12d39edec6
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 9bd8b73e27429b70a11e0016f794d1a976076c9f
|
Subproject commit bba52192dc9dff68cd4da80398a1127235ada06e
|
@ -91,7 +91,6 @@ const tokenService = new TokenService(storageService);
|
|||||||
const appIdService = new AppIdService(storageService);
|
const appIdService = new AppIdService(storageService);
|
||||||
const apiService = new ApiService(tokenService, platformUtilsService,
|
const apiService = new ApiService(tokenService, platformUtilsService,
|
||||||
async (expired: boolean) => messagingService.send('logout', { expired: expired }));
|
async (expired: boolean) => messagingService.send('logout', { expired: expired }));
|
||||||
const environmentService = new EnvironmentService(apiService, storageService);
|
|
||||||
const userService = new UserService(tokenService, storageService);
|
const userService = new UserService(tokenService, storageService);
|
||||||
const settingsService = new SettingsService(userService, storageService);
|
const settingsService = new SettingsService(userService, storageService);
|
||||||
export let searchService: SearchService = null;
|
export let searchService: SearchService = null;
|
||||||
@ -114,6 +113,7 @@ const authService = new AuthService(cryptoService, apiService,
|
|||||||
const exportService = new ExportService(folderService, cipherService, apiService);
|
const exportService = new ExportService(folderService, cipherService, apiService);
|
||||||
const auditService = new AuditService(cryptoFunctionService, apiService);
|
const auditService = new AuditService(cryptoFunctionService, apiService);
|
||||||
const notificationsService = new NotificationsService(userService, tokenService, syncService, appIdService);
|
const notificationsService = new NotificationsService(userService, tokenService, syncService, appIdService);
|
||||||
|
const environmentService = new EnvironmentService(apiService, storageService, notificationsService);
|
||||||
|
|
||||||
const analytics = new Analytics(window, () => isDev(), platformUtilsService, storageService, appIdService);
|
const analytics = new Analytics(window, () => isDev(), platformUtilsService, storageService, appIdService);
|
||||||
containerService.attachToWindow(window);
|
containerService.attachToWindow(window);
|
||||||
|
@ -257,8 +257,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div *ngIf="cipher.hasPasswordHistory">
|
<div *ngIf="cipher.hasPasswordHistory">
|
||||||
<b class="font-weight-semibold">{{'passwordHistory' | i18n}}:</b>
|
<b class="font-weight-semibold">{{'passwordHistory' | i18n}}:</b>
|
||||||
<a href="#" (click)="viewHistory()" appStopClick title="{{'passwordHistory' | i18n}}"
|
<a href="#" (click)="viewHistory()" appStopClick title="{{'passwordHistory' | i18n}}">
|
||||||
class="text-muted">
|
|
||||||
{{cipher.passwordHistory.length}}
|
{{cipher.passwordHistory.length}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
|
ChangeDetectorRef,
|
||||||
Component,
|
Component,
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
|
NgZone,
|
||||||
OnChanges,
|
OnChanges,
|
||||||
Output,
|
Output,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
@ -16,6 +18,8 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|||||||
import { TokenService } from 'jslib/abstractions/token.service';
|
import { TokenService } from 'jslib/abstractions/token.service';
|
||||||
import { TotpService } from 'jslib/abstractions/totp.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 { ViewComponent as BaseViewComponent } from 'jslib/angular/components/view.component';
|
||||||
|
|
||||||
import { CipherView } from 'jslib/models/view/cipherView';
|
import { CipherView } from 'jslib/models/view/cipherView';
|
||||||
@ -31,9 +35,10 @@ export class ViewComponent extends BaseViewComponent implements OnChanges {
|
|||||||
tokenService: TokenService, toasterService: ToasterService,
|
tokenService: TokenService, toasterService: ToasterService,
|
||||||
cryptoService: CryptoService, platformUtilsService: PlatformUtilsService,
|
cryptoService: CryptoService, platformUtilsService: PlatformUtilsService,
|
||||||
i18nService: I18nService, analytics: Angulartics2,
|
i18nService: I18nService, analytics: Angulartics2,
|
||||||
auditService: AuditService) {
|
auditService: AuditService, broadcasterService: BroadcasterService,
|
||||||
|
ngZone: NgZone, changeDetectorRef: ChangeDetectorRef) {
|
||||||
super(cipherService, totpService, tokenService, toasterService, cryptoService, platformUtilsService,
|
super(cipherService, totpService, tokenService, toasterService, cryptoService, platformUtilsService,
|
||||||
i18nService, analytics, auditService, window);
|
i18nService, analytics, auditService, window, broadcasterService, ngZone, changeDetectorRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
async ngOnChanges() {
|
async ngOnChanges() {
|
||||||
|
Loading…
Reference in New Issue
Block a user