mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
login custom fields view/edit
This commit is contained in:
@@ -31,9 +31,17 @@ var LoginData = function (response, userId) {
|
||||
this.favorite = response.favorite;
|
||||
this.revisionDate = response.revisionDate;
|
||||
|
||||
var i;
|
||||
if (response.data.Fields) {
|
||||
this.fields = [];
|
||||
for (i = 0; i < response.data.Fields.length; i++) {
|
||||
this.fields.push(new FieldData(response.data.Fields[i]));
|
||||
}
|
||||
}
|
||||
|
||||
if (response.attachments) {
|
||||
this.attachments = [];
|
||||
for (var i = 0; i < response.attachments.length; i++) {
|
||||
for (i = 0; i < response.attachments.length; i++) {
|
||||
this.attachments.push(new AttachmentData(response.attachments[i]));
|
||||
}
|
||||
}
|
||||
@@ -46,3 +54,9 @@ var AttachmentData = function (response) {
|
||||
this.size = response.size;
|
||||
this.sizeName = response.sizeName;
|
||||
};
|
||||
|
||||
var FieldData = function (response) {
|
||||
this.type = response.Type;
|
||||
this.name = response.Name;
|
||||
this.value = response.Value;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user