mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Add newField property to FieldView, used for allowing edits for new fields
This commit is contained in:
@@ -296,6 +296,7 @@ export class AddEditComponent implements OnInit {
|
||||
|
||||
const f = new FieldView();
|
||||
f.type = this.addFieldType;
|
||||
f.newField = true;
|
||||
this.cipher.fields.push(f);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ export class FieldView implements View {
|
||||
name: string = null;
|
||||
value: string = null;
|
||||
type: FieldType = null;
|
||||
newField: boolean = false; // Marks if the filed is new and haven't been saved
|
||||
|
||||
constructor(f?: Field) {
|
||||
if (!f) {
|
||||
|
||||
Reference in New Issue
Block a user