FIX_dialog box for confirmation and Rules are removed
This commit is contained in:
parent
650536745d
commit
53787a7ea1
@ -156,30 +156,32 @@ class AgentListState extends ConsumerState<AgentList> {
|
||||
}
|
||||
|
||||
Future<void> _exportRetentionRateExcel() async {
|
||||
final proceed = await showDialog<bool>(
|
||||
context: context,
|
||||
builder: (ctx) {
|
||||
return AlertDialog(
|
||||
title: const Text('Export Rentation Rate'),
|
||||
content: const Text(
|
||||
'The downloaded Excel will include input validation.\n\n'
|
||||
'Allowed values: only numbers from 0 to 100.\n'
|
||||
'Not allowed: negative values, values above 100, text/special characters.',
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(ctx, false),
|
||||
child: const Text('Cancel'),
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () => Navigator.pop(ctx, true),
|
||||
child: const Text('Download'),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
if (proceed != true) return;
|
||||
/****** Export confirmation dialog kept for future use ********/
|
||||
// final proceed = await showDialog<bool>(
|
||||
// context: context,
|
||||
// builder: (ctx) {
|
||||
// return AlertDialog(
|
||||
// title: const Text('Export Rentation Rate'),
|
||||
// content: const Text(
|
||||
// 'The downloaded Excel will include input validation.\n\n'
|
||||
// 'Allowed values: only numbers from 0 to 100.\n'
|
||||
// 'Not allowed: negative values, values above 100, text/special characters.',
|
||||
// ),
|
||||
// actions: [
|
||||
// TextButton(
|
||||
// onPressed: () => Navigator.pop(ctx, false),
|
||||
// child: const Text('Cancel'),
|
||||
// ),
|
||||
// ElevatedButton(
|
||||
// onPressed: () => Navigator.pop(ctx, true),
|
||||
// child: const Text('Download'),
|
||||
// ),
|
||||
// ],
|
||||
// );
|
||||
// },
|
||||
// );
|
||||
// if (proceed != true) return;
|
||||
/****** *************************************************** ********/
|
||||
|
||||
try {
|
||||
await apiService.downloadAgentRetentionRateExcel();
|
||||
@ -241,7 +243,8 @@ class AgentListState extends ConsumerState<AgentList> {
|
||||
'Import done',
|
||||
);
|
||||
}
|
||||
await _showRetentionImportReportDialog(data, report);
|
||||
// doN'T Delete This function And Related Codes
|
||||
// await _showRetentionImportReportDialog(data, report);
|
||||
refresh();
|
||||
} else {
|
||||
if (mounted) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user