mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 09:43:27 +00:00
[Linked fields] Add Linked Field as a custom field type (#1563)
* Add linked fields support * Fix style, don't show linked field if Secure Note * Finish basic linked fields for Login * Use Field.LinkedId to store linked field info * Reset Linked Custom Fields if cipherType changes * Refactor to use ItemView class * Use enum for LinkedId * Detect if no linkedFieldOptions
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Bit.Core.Models.View
|
||||
public FieldView(Field f)
|
||||
{
|
||||
Type = f.Type;
|
||||
LinkedId = f.LinkedId;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
@@ -17,5 +18,6 @@ namespace Bit.Core.Models.View
|
||||
public FieldType Type { get; set; }
|
||||
public string MaskedValue => Value != null ? "••••••••" : null;
|
||||
public bool NewField { get; set; }
|
||||
public LinkedIdType? LinkedId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user