mirror of
https://github.com/bitwarden/mobile
synced 2025-12-21 02:33:36 +00:00
Use .json extension for encrypted json export (#1202)
This commit is contained in:
@@ -125,6 +125,8 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
var data = await _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key);
|
var data = await _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key);
|
||||||
var fileFormat = FileFormatOptions[FileFormatSelectedIndex].Key;
|
var fileFormat = FileFormatOptions[FileFormatSelectedIndex].Key;
|
||||||
|
fileFormat = fileFormat == "encrypted_json" ? "json" : fileFormat;
|
||||||
|
|
||||||
_defaultFilename = _exportService.GetFileName(null, fileFormat);
|
_defaultFilename = _exportService.GetFileName(null, fileFormat);
|
||||||
_exportResult = Encoding.ASCII.GetBytes(data);
|
_exportResult = Encoding.ASCII.GetBytes(data);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user