add padlock importer, move from maps to arrays
This commit is contained in:
parent
57e13c25b5
commit
bd0d321dba
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit a6a0673af8eb11ebe1afc7324751c6ab0a6e338b
|
||||
Subproject commit 4004449aa833a2a445fcdb2a9c80f4a014de0b89
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue