mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
show fingerprint phrase menu option
This commit is contained in:
@@ -39,6 +39,7 @@ import { LockService } from 'jslib/abstractions/lock.service';
|
||||
import { MessagingService } from 'jslib/abstractions/messaging.service';
|
||||
import { NotificationsService } from 'jslib/abstractions/notifications.service';
|
||||
import { PasswordGenerationService } from 'jslib/abstractions/passwordGeneration.service';
|
||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
import { SearchService } from 'jslib/abstractions/search.service';
|
||||
import { SettingsService } from 'jslib/abstractions/settings.service';
|
||||
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||
@@ -89,7 +90,8 @@ export class AppComponent implements OnInit {
|
||||
private lockService: LockService, private storageService: StorageService,
|
||||
private cryptoService: CryptoService, private componentFactoryResolver: ComponentFactoryResolver,
|
||||
private messagingService: MessagingService, private collectionService: CollectionService,
|
||||
private searchService: SearchService, private notificationsService: NotificationsService) { }
|
||||
private searchService: SearchService, private notificationsService: NotificationsService,
|
||||
private platformUtilsService: PlatformUtilsService) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.ngZone.runOutsideAngular(() => {
|
||||
@@ -135,6 +137,17 @@ export class AppComponent implements OnInit {
|
||||
case 'openPremium':
|
||||
this.openModal<PremiumComponent>(PremiumComponent, this.premiumRef);
|
||||
break;
|
||||
case 'showFingerprintPhrase':
|
||||
const fingerprint = await this.cryptoService.getFingerprint(
|
||||
await this.userService.getUserId());
|
||||
const result = await this.platformUtilsService.showDialog(
|
||||
this.i18nService.t('yourAccountsFingerprint') + ': ' + fingerprint.join('-'),
|
||||
this.i18nService.t('fingerprintPhrase'), this.i18nService.t('learnMore'),
|
||||
this.i18nService.t('close'));
|
||||
if (result) {
|
||||
this.platformUtilsService.launchUri('https://help.bitwarden.com');
|
||||
}
|
||||
break;
|
||||
case 'openPasswordHistory':
|
||||
this.openModal<PasswordGeneratorHistoryComponent>(
|
||||
PasswordGeneratorHistoryComponent, this.passwordHistoryRef);
|
||||
|
||||
Reference in New Issue
Block a user