mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
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:
committed by
Tim Abbott
parent
6e7cb8a8c4
commit
723346b05c
@@ -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,
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user