1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02: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) {
cipher.card = parseCard(value);
cipher.notes = value.notes && value.notes !== '' ? value.notes : null;
}
else if (cipher.type === constants.cipherType.identity) {
cipher.identity = {
@ -764,6 +765,8 @@
phone: value.phone && value.phone !== '' ? value.phone : null
};
cipher.notes = value.notes && value.notes !== '' ? value.notes : null;
if (cipher.identity.title) {
cipher.identity.title = cipher.identity.title.charAt(0).toUpperCase() +
cipher.identity.title.slice(1);