mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
SM-776: Removed unused format specifier for SM export (#5470)
This commit is contained in:
@@ -82,7 +82,7 @@ export class SecretsManagerExportComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
private async doExport() {
|
private async doExport() {
|
||||||
const fileExtension = this.exportFormats[this.formGroup.get("format").value].fileExtension;
|
const fileExtension = this.exportFormats[this.formGroup.get("format").value].fileExtension;
|
||||||
const exportData = await this.secretsManagerApiService.export(this.orgId, fileExtension);
|
const exportData = await this.secretsManagerApiService.export(this.orgId);
|
||||||
|
|
||||||
await this.downloadFile(exportData, fileExtension);
|
await this.downloadFile(exportData, fileExtension);
|
||||||
this.platformUtilsService.showToast("success", null, this.i18nService.t("dataExportSuccess"));
|
this.platformUtilsService.showToast("success", null, this.i18nService.t("dataExportSuccess"));
|
||||||
|
|||||||
@@ -29,10 +29,10 @@ export class SecretsManagerPortingApiService {
|
|||||||
private i18nService: I18nService
|
private i18nService: I18nService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
async export(organizationId: string, exportFormat = "json"): Promise<string> {
|
async export(organizationId: string): Promise<string> {
|
||||||
const response = await this.apiService.send(
|
const response = await this.apiService.send(
|
||||||
"GET",
|
"GET",
|
||||||
"/sm/" + organizationId + "/export?format=" + exportFormat,
|
"/sm/" + organizationId + "/export",
|
||||||
null,
|
null,
|
||||||
true,
|
true,
|
||||||
true
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user