fix #1342: hint that the data will be stored in unencrypted form after exporting

This commit is contained in:
antelle 2020-04-23 18:36:26 +02:00
parent d6aab0c470
commit 908510ff0b
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
3 changed files with 21 additions and 6 deletions

View File

@ -515,6 +515,8 @@
"setFileCloseNoSave": "Close and lose changes",
"setFileDontClose": "Don't close",
"setFileFormatVersion": "File format",
"saveFileExportRaw": "Exporting your passwords",
"saveFileExportRawBody": "The exported file will contain your passwords, they will not be encrypted there. Would you like to proceed?",
"setShTitle": "Shortcuts",
"setShShowAll": "show all items",

View File

@ -256,16 +256,28 @@ class SettingsFileView extends View {
}
saveToXml() {
this.model.getXml(xml => {
const blob = new Blob([xml], { type: 'text/xml' });
FileSaver.saveAs(blob, this.model.name + '.xml');
Alerts.yesno({
header: Locale.saveFileExportRaw,
body: Locale.saveFileExportRawBody,
success: () => {
this.model.getXml(xml => {
const blob = new Blob([xml], { type: 'text/xml' });
FileSaver.saveAs(blob, this.model.name + '.xml');
});
}
});
}
saveToHtml() {
this.model.getHtml(html => {
const blob = new Blob([html], { type: 'text/html' });
FileSaver.saveAs(blob, this.model.name + '.html');
Alerts.yesno({
header: Locale.saveFileExportRaw,
body: Locale.saveFileExportRawBody,
success: () => {
this.model.getHtml(html => {
const blob = new Blob([html], { type: 'text/html' });
FileSaver.saveAs(blob, this.model.name + '.html');
});
}
});
}

View File

@ -3,6 +3,7 @@ Release notes
##### v1.15.0 (WIP)
`+` #557: Argon2 speed improvements in desktop apps
`+` #1400: auto-apply tag when creating new entry in tag view
`+` #1342: hint that the data will be stored in unencrypted form after exporting
`-` fix #1463: copying the original url instead of adding https:
##### v1.14.0 (2020-04-18)