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