Add newField property to FieldView, used for allowing edits for new fields

This commit is contained in:
hinton 2020-06-03 20:45:53 +02:00
parent 1fa3eb49ad
commit 34402571e7
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

@ -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) {