1
0
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:
Bernd Schoolmann
2024-11-20 04:39:35 -08:00
committed by GitHub
parent 1360c2abba
commit 06b5c798dd
2 changed files with 26 additions and 9 deletions

View File

@@ -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) {