mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
Set correct filename extensions on vault-export (#14018)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8b14b0c09f
commit
7ed2145393
@@ -81,7 +81,7 @@ export class IndividualVaultExportService
|
||||
return {
|
||||
type: "text/plain",
|
||||
data: await this.buildPasswordExport(exportVault.data, password),
|
||||
fileName: ExportHelper.getFileName("json"),
|
||||
fileName: ExportHelper.getFileName("", "encrypted_json"),
|
||||
} as ExportedVaultAsString;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export class IndividualVaultExportService
|
||||
return {
|
||||
type: "application/zip",
|
||||
data: blobData,
|
||||
fileName: ExportHelper.getFileName("json"),
|
||||
fileName: ExportHelper.getFileName("", "json"),
|
||||
} as ExportedVaultAsBlob;
|
||||
}
|
||||
|
||||
@@ -185,14 +185,14 @@ export class IndividualVaultExportService
|
||||
return {
|
||||
type: "text/plain",
|
||||
data: this.buildCsvExport(decFolders, decCiphers),
|
||||
fileName: ExportHelper.getFileName("csv"),
|
||||
fileName: ExportHelper.getFileName("", "csv"),
|
||||
} as ExportedVaultAsString;
|
||||
}
|
||||
|
||||
return {
|
||||
type: "text/plain",
|
||||
data: this.buildJsonExport(decFolders, decCiphers),
|
||||
fileName: ExportHelper.getFileName("json"),
|
||||
fileName: ExportHelper.getFileName("", "json"),
|
||||
} as ExportedVaultAsString;
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ export class IndividualVaultExportService
|
||||
return {
|
||||
type: "text/plain",
|
||||
data: JSON.stringify(jsonDoc, null, " "),
|
||||
fileName: ExportHelper.getFileName("json"),
|
||||
fileName: ExportHelper.getFileName("", "json"),
|
||||
} as ExportedVaultAsString;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user