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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user