mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
Force ssh key creation when creating new ssh item while filtering to ssh keys in desktop (#11985)
This commit is contained in:
@@ -17,6 +17,10 @@ export class SshKeyView extends ItemView {
|
||||
}
|
||||
|
||||
get maskedPrivateKey(): string {
|
||||
if (!this.privateKey || this.privateKey.length === 0) {
|
||||
return "";
|
||||
}
|
||||
|
||||
let lines = this.privateKey.split("\n").filter((l) => l.trim() !== "");
|
||||
lines = lines.map((l, i) => {
|
||||
if (i === 0 || i === lines.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user