settings_exports: Add 'Type' column to data exports table.

This commit adds a 'Type' column to the Data exports table
in the org settings.

It specifies whether it's a public data or standard export.

Fixes part of #31201.
This commit is contained in:
Prakhar Pratyush
2024-10-09 16:51:04 +05:30
committed by Tim Abbott
parent 6e7cb8a8c4
commit 723346b05c
3 changed files with 11 additions and 0 deletions

View File

@@ -82,6 +82,12 @@ export function populate_exports_table(exports: RealmExport[]): void {
);
}
let export_type = settings_config.export_type_values.export_public.description;
if (data.export_type !== settings_config.export_type_values.export_public.value) {
export_type =
settings_config.export_type_values.export_full_with_consent.description;
}
return render_admin_export_list({
realm_export: {
id: data.id,
@@ -94,6 +100,7 @@ export function populate_exports_table(exports: RealmExport[]): void {
time_failed: failed_timestamp,
pending: data.pending,
time_deleted: deleted_timestamp,
export_type,
},
});
},