1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

add padlock importer, move from maps to arrays

This commit is contained in:
Kyle Spearrin
2018-07-10 16:39:04 -04:00
parent 57e13c25b5
commit bd0d321dba
3 changed files with 8 additions and 5 deletions

2
jslib

Submodule jslib updated: a6a0673af8...4004449aa8

View File

@@ -62,8 +62,8 @@ export class ImportComponent extends BaseImportComponent {
}
}
if (importResult.collectionRelationships != null) {
importResult.collectionRelationships.forEach((v: number, k: number) =>
request.collectionRelationships.push(new KvpRequest(k, v)));
importResult.collectionRelationships.forEach((r) =>
request.collectionRelationships.push(new KvpRequest(r[0], r[1])));
}
return await this.apiService.postImportOrganizationCiphers(this.organizationId, request);
}

View File

@@ -27,6 +27,7 @@ import { BlurCsvImporter } from 'jslib/importers/blurCsvImporter';
import { Importer } from 'jslib/importers/importer';
import { KeePassXCsvImporter } from 'jslib/importers/keepassxCsvImporter';
import { LastPassCsvImporter } from 'jslib/importers/lastpassCsvImporter';
import { PadlockCsvImporter } from 'jslib/importers/padlockCsvImporter';
import { SafeInCloudXmlImporter } from 'jslib/importers/safeInCloudXmlImporter';
@Component({
@@ -153,8 +154,8 @@ export class ImportComponent implements OnInit {
}
}
if (importResult.folderRelationships != null) {
importResult.folderRelationships.forEach((v: number, k: number) =>
request.folderRelationships.push(new KvpRequest(k, v)));
importResult.folderRelationships.forEach((r) =>
request.folderRelationships.push(new KvpRequest(r[0], r[1])));
}
return await this.apiService.postImportCiphers(request);
}
@@ -219,6 +220,8 @@ export class ImportComponent implements OnInit {
return new BlurCsvImporter();
case 'safeincloudxml':
return new SafeInCloudXmlImporter();
case 'padlockcsv':
return new PadlockCsvImporter();
default:
return null;
}