mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 03:33:54 +00:00
Added capability on psono importer to add sub-folders (#7602)
This commit is contained in:
@@ -350,7 +350,11 @@ export abstract class BaseImporter {
|
||||
}
|
||||
}
|
||||
|
||||
protected processFolder(result: ImportResult, folderName: string) {
|
||||
protected processFolder(
|
||||
result: ImportResult,
|
||||
folderName: string,
|
||||
addRelationship: boolean = true,
|
||||
) {
|
||||
if (this.isNullOrWhitespace(folderName)) {
|
||||
return;
|
||||
}
|
||||
@@ -374,7 +378,10 @@ export abstract class BaseImporter {
|
||||
result.folders.push(f);
|
||||
}
|
||||
|
||||
result.folderRelationships.push([result.ciphers.length, folderIndex]);
|
||||
//Some folders can have sub-folders but no ciphers directly, we should not add to the folderRelationships array
|
||||
if (addRelationship) {
|
||||
result.folderRelationships.push([result.ciphers.length, folderIndex]);
|
||||
}
|
||||
}
|
||||
|
||||
protected convertToNoteIfNeeded(cipher: CipherView) {
|
||||
|
||||
Reference in New Issue
Block a user