Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings_exports: Add 'Type' column to data exports table.
Prakhar Pratyush723346b05cc2
diff --git a/web/src/settings_exports.ts b/web/src/settings_exports.tsindex 7611688c4f6..af6f95e70e2 100644--- a/web/src/settings_exports.ts+++ b/web/src/settings_exports.ts@@ -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,},});},diff --git a/web/templates/settings/admin_export_list.hbs b/web/templates/settings/admin_export_list.hbsindex 67102b2c12f..6fdc1adb4f0 100644--- a/web/templates/settings/admin_export_list.hbs+++ b/web/templates/settings/admin_export_list.hbs@@ -3,6 +3,9 @@<td><span class="acting_user">{{acting_user}}</span></td>+ <td>+ <span>{{export_type}}</span>+ </td><td><span class="export_time">{{event_time}}</span></td>diff --git a/web/templates/settings/data_exports_admin.hbs b/web/templates/settings/data_exports_admin.hbsindex 06aa9682e74..73bcc50bd66 100644--- a/web/templates/settings/data_exports_admin.hbs+++ b/web/templates/settings/data_exports_admin.hbs@@ -35,6 +35,7 @@<table class="table table-striped wrapped-table admin_exports_table"><thead class="table-sticky-headers"><th class="active" data-sort="user">{{t "Requesting user" }}</th>+ <th>{{t "Type" }}</th><th data-sort="numeric" data-sort-prop="export_time">{{t "Time" }}</th><th>{{t "Status" }}</th><th class="actions">{{t "Actions" }}</th>