export: Add banner if admin's private data export setting is disabled.

This commit introduces a banner on the "Start Export" modal
to notify the admin that their personal setting to export
private data is not toggled ON.

The banner is shown when the 'Export type' is 'Standard' and
admin's personal setting to export private data is not toggled ON.

The banner ensures admins are aware their private data will
not be exported unless they enable the respective setting.
This commit is contained in:
Prakhar Pratyush
2024-12-24 16:32:39 +05:30
committed by Tim Abbott
parent 891a35570b
commit 469cc53187
6 changed files with 59 additions and 0 deletions

View File

@@ -764,6 +764,9 @@ export function dispatch_normal_event(event) {
if (event.property === "presence_enabled") {
activity_ui.redraw_user(current_user.user_id);
}
if (event.property === "allow_private_data_export") {
settings_exports.refresh_allow_private_data_export_banner();
}
break;
}