1
0
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:
Kyle Spearrin
2017-09-21 22:45:24 -04:00
parent 56e1f6c25b
commit 835bb6ffa7
13 changed files with 255 additions and 50 deletions

View File

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