mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-29 17:38:04 +01:00
export custom fields
This commit is contained in:
parent
81d7b87507
commit
ea65c40d1f
@ -67,9 +67,23 @@
|
||||
password: decLogins[i].password,
|
||||
notes: decLogins[i].notes,
|
||||
folder: null,
|
||||
totp: decLogins[i].totp
|
||||
totp: decLogins[i].totp,
|
||||
fields: null
|
||||
};
|
||||
|
||||
if (decLogins[i].fields) {
|
||||
for (var j = 0; j < decLogins[i].fields.length; j++) {
|
||||
if (!login.fields) {
|
||||
login.fields = '';
|
||||
}
|
||||
else {
|
||||
login.fields += '\n';
|
||||
}
|
||||
|
||||
login.fields += (decLogins[i].fields[j].name + ': ' + decLogins[i].fields[j].value);
|
||||
}
|
||||
}
|
||||
|
||||
for (var j = 0; j < decFolders.length; j++) {
|
||||
if (decFolders[j].id === decLogins[i].folderId && decFolders[j].name !== i18nService.noneFolder) {
|
||||
login.folder = decFolders[j].name;
|
||||
|
Loading…
Reference in New Issue
Block a user