mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
SM-776: Removed unused format specifier for SM export (#5470)
This commit is contained in:
parent
3f35b78b40
commit
c8156b82b4
@ -82,7 +82,7 @@ export class SecretsManagerExportComponent implements OnInit, OnDestroy {
|
||||
|
||||
private async doExport() {
|
||||
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);
|
||||
this.platformUtilsService.showToast("success", null, this.i18nService.t("dataExportSuccess"));
|
||||
|
@ -29,10 +29,10 @@ export class SecretsManagerPortingApiService {
|
||||
private i18nService: I18nService
|
||||
) {}
|
||||
|
||||
async export(organizationId: string, exportFormat = "json"): Promise<string> {
|
||||
async export(organizationId: string): Promise<string> {
|
||||
const response = await this.apiService.send(
|
||||
"GET",
|
||||
"/sm/" + organizationId + "/export?format=" + exportFormat,
|
||||
"/sm/" + organizationId + "/export",
|
||||
null,
|
||||
true,
|
||||
true
|
||||
|
Loading…
Reference in New Issue
Block a user