mirror of
https://github.com/bitwarden/browser
synced 2026-01-01 16:13:27 +00:00
Adds a device management tab under settings -> security that allows users to: - View and manage their account's connected devices - Remove/deactivate devices - See device details like platform, last login, and trust status - Sort and filter device list with virtual scrolling Resolves PM-1214
22 lines
690 B
TypeScript
22 lines
690 B
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
|
|
import { UserVerificationService } from "@bitwarden/common/auth/abstractions/user-verification/user-verification.service.abstraction";
|
|
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
|
|
|
@Component({
|
|
selector: "app-security",
|
|
templateUrl: "security.component.html",
|
|
})
|
|
export class SecurityComponent implements OnInit {
|
|
showChangePassword = true;
|
|
|
|
constructor(
|
|
private userVerificationService: UserVerificationService,
|
|
private configService: ConfigService,
|
|
) {}
|
|
|
|
async ngOnInit() {
|
|
this.showChangePassword = await this.userVerificationService.hasMasterPassword();
|
|
}
|
|
}
|