mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
Exclude Linked field type for ssh keys (#15662)
This commit is contained in:
@@ -71,8 +71,11 @@ export class AddEditCustomFieldDialogComponent {
|
|||||||
if (this.data.disallowHiddenField && option.value === FieldType.Hidden) {
|
if (this.data.disallowHiddenField && option.value === FieldType.Hidden) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Filter out the Linked field type for Secure Notes
|
// Filter out the Linked field type for Secure Notes and SSH Keys
|
||||||
if (this.data.cipherType === CipherType.SecureNote) {
|
if (
|
||||||
|
this.data.cipherType === CipherType.SecureNote ||
|
||||||
|
this.data.cipherType === CipherType.SshKey
|
||||||
|
) {
|
||||||
return option.value !== FieldType.Linked;
|
return option.value !== FieldType.Linked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user