mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
support for json exports
This commit is contained in:
parent
55ba78c66a
commit
1dd88a690b
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 27566c3fd5a1040112278c7ad0a50c6b8d45e3e4
|
||||
Subproject commit 3b22df15e8cb2f14c2b4dfe996af9bbb721902d0
|
@ -28,7 +28,7 @@ export class ExportComponent extends BaseExportComponent {
|
||||
}
|
||||
|
||||
getExportData() {
|
||||
return this.exportService.getOrganizationExport(this.organizationId, 'csv');
|
||||
return this.exportService.getOrganizationExport(this.organizationId, this.format);
|
||||
}
|
||||
|
||||
getFileName() {
|
||||
|
@ -3,7 +3,7 @@
|
||||
<h1>{{'exportVault' | i18n}}</h1>
|
||||
</div>
|
||||
<p>{{'exportMasterPassword' | i18n}}</p>
|
||||
<app-callout type="warning">{{'exportWarning' | i18n}}</app-callout>
|
||||
<app-callout type="warning">{{'exportWarningDesc' | i18n}}</app-callout>
|
||||
<div class="row">
|
||||
<div class="form-group col-6">
|
||||
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
||||
@ -11,6 +11,15 @@
|
||||
appInputVerbatim>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-6">
|
||||
<label for="format">{{'fileFormat' | i18n}}</label>
|
||||
<select class="form-control" id="format" name="Format" [(ngModel)]="format">
|
||||
<option value="json">.json</option>
|
||||
<option value="csv">.csv</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}"></i>
|
||||
<span>{{'exportVault' | i18n}}</span>
|
||||
|
@ -774,8 +774,8 @@
|
||||
"warning": {
|
||||
"message": "Warning"
|
||||
},
|
||||
"exportWarning": {
|
||||
"message": "This export contains your unencrypted data in .csv format. You should not store or send it over unsecure channels (such as email). Delete it immediately after you are done using it."
|
||||
"exportWarningDesc": {
|
||||
"message": "This export contains your vault data in an unencrypted format. You should not store or send the exported file over unsecure channels (such as email). Delete it immediately after you are done using it."
|
||||
},
|
||||
"exportMasterPassword": {
|
||||
"message": "Enter your master password to export your vault data."
|
||||
@ -783,6 +783,9 @@
|
||||
"exportVault": {
|
||||
"message": "Export Vault"
|
||||
},
|
||||
"fileFormat": {
|
||||
"message": "File Format"
|
||||
},
|
||||
"exportSuccess": {
|
||||
"message": "Your vault data has been exported."
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user