mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
support for json exports
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 27566c3fd5...3b22df15e8
@@ -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."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user