From d259703c3b3339ddb7ab7496dc160f6090242363 Mon Sep 17 00:00:00 2001 From: alfonso Date: Mon, 26 Jun 2023 23:04:38 -0500 Subject: [PATCH] Added a waiting image whenever processing answer file from Amazon --- .../WaitingAnswerFromAmazon/RptPendingAnswerFromAmazon.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Components/Clientes/Amazon/Reportes/Clasification/WaitingAnswerFromAmazon/RptPendingAnswerFromAmazon.tsx b/src/Components/Clientes/Amazon/Reportes/Clasification/WaitingAnswerFromAmazon/RptPendingAnswerFromAmazon.tsx index 9bbbde4..aa82847 100644 --- a/src/Components/Clientes/Amazon/Reportes/Clasification/WaitingAnswerFromAmazon/RptPendingAnswerFromAmazon.tsx +++ b/src/Components/Clientes/Amazon/Reportes/Clasification/WaitingAnswerFromAmazon/RptPendingAnswerFromAmazon.tsx @@ -240,12 +240,15 @@ export default function RptPendingAnswerFromAmazon( }) } - const ApplyAnswerFiles2Invoice = () => { + const ApplyAnswerFiles2Invoice = () => { + setWaitingMessage('Generando...') const Filenames = AmazonAnswerFile.map(element => element.nombreArchivo); + setWaitingDialog(true) DSAmazon.ApplyAnswerFile2Invoice(Filenames) .then((response) => { loadReport() setAmazonAnswerFile([]) + setWaitingDialog(false) setShowModal(false) }) .catch((e: Error) => { @@ -922,6 +925,7 @@ export default function RptPendingAnswerFromAmazon( +