1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 14:34:02 +00:00

Fix ciphertype earlier in the creation

This commit is contained in:
Bernd Schoolmann
2024-12-06 10:38:40 +01:00
parent 7291c3779d
commit b19fa07d4a
2 changed files with 8 additions and 1 deletions

View File

@@ -701,7 +701,10 @@ export class VaultComponent implements OnInit, OnDestroy {
}
async addCipher(cipherType?: CipherType) {
const type = cipherType ?? this.activeFilter.cipherType;
let type = cipherType ?? this.activeFilter.cipherType;
if (type === CipherType.SshKey) {
type = CipherType.Login;
}
if (this.extensionRefreshEnabled) {
return this.addCipherV2(type);

View File

@@ -783,6 +783,10 @@ export class VaultComponent implements OnInit, OnDestroy {
}
async addCipher(cipherType?: CipherType) {
if (cipherType === CipherType.SshKey) {
cipherType = CipherType.Login;
}
if (this.extensionRefreshEnabled) {
return this.addCipherV2(cipherType);
}