mirror of
https://github.com/bitwarden/browser
synced 2025-01-23 01:33:02 +01:00
Has Totp method will be used to enable quick copy (#225)
This commit is contained in:
parent
2c414ce27a
commit
cc801ce0d7
@ -1,6 +1,7 @@
|
||||
import { LoginUriView } from './loginUriView';
|
||||
import { View } from './view';
|
||||
|
||||
import { Utils } from '../../misc/utils';
|
||||
import { Login } from '../domain/login';
|
||||
|
||||
export class LoginView implements View {
|
||||
@ -34,6 +35,10 @@ export class LoginView implements View {
|
||||
return this.hasUris && this.uris.some((u) => u.canLaunch);
|
||||
}
|
||||
|
||||
get hasTotp(): boolean {
|
||||
return !Utils.isNullOrWhitespace(this.totp);
|
||||
}
|
||||
|
||||
get launchUri(): string {
|
||||
if (this.hasUris) {
|
||||
const uri = this.uris.find((u) => u.canLaunch);
|
||||
|
Loading…
Reference in New Issue
Block a user