1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-09 09:51:02 +01:00

support for encryptr text column

This commit is contained in:
Kyle Spearrin 2020-02-20 16:53:01 -05:00
parent ab9bee29b8
commit 29635bf9da

View File

@ -20,6 +20,14 @@ export class EncryptrCsvImporter extends BaseImporter implements Importer {
const cipher = this.initLoginCipher(); const cipher = this.initLoginCipher();
cipher.name = this.getValueOrDefault(value.Label, '--'); cipher.name = this.getValueOrDefault(value.Label, '--');
cipher.notes = this.getValueOrDefault(value.Notes); cipher.notes = this.getValueOrDefault(value.Notes);
const text = this.getValueOrDefault(value.Text);
if (!this.isNullOrWhitespace(text)) {
if (this.isNullOrWhitespace(cipher.notes)) {
cipher.notes = text;
} else {
cipher.notes += ('\n\n' + text);
}
}
const type = value['Entry Type']; const type = value['Entry Type'];
if (type === 'Password') { if (type === 'Password') {