1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

import notes for form fills

This commit is contained in:
Kyle Spearrin
2017-11-30 23:45:06 -05:00
parent b78ab4db27
commit 2997f694f8

View File

@@ -743,6 +743,7 @@
} }
else if (cipher.type === constants.cipherType.card) { else if (cipher.type === constants.cipherType.card) {
cipher.card = parseCard(value); cipher.card = parseCard(value);
cipher.notes = value.notes && value.notes !== '' ? value.notes : null;
} }
else if (cipher.type === constants.cipherType.identity) { else if (cipher.type === constants.cipherType.identity) {
cipher.identity = { cipher.identity = {
@@ -764,6 +765,8 @@
phone: value.phone && value.phone !== '' ? value.phone : null phone: value.phone && value.phone !== '' ? value.phone : null
}; };
cipher.notes = value.notes && value.notes !== '' ? value.notes : null;
if (cipher.identity.title) { if (cipher.identity.title) {
cipher.identity.title = cipher.identity.title.charAt(0).toUpperCase() + cipher.identity.title = cipher.identity.title.charAt(0).toUpperCase() +
cipher.identity.title.slice(1); cipher.identity.title.slice(1);