Added a waiting image whenever processing answer file from Amazon

feaureInd4Manager
alfonso 1 year ago
parent ff35aafde6
commit d259703c3b
  1. 6
      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); const Filenames = AmazonAnswerFile.map(element => element.nombreArchivo);
setWaitingDialog(true)
DSAmazon.ApplyAnswerFile2Invoice(Filenames) DSAmazon.ApplyAnswerFile2Invoice(Filenames)
.then((response) => { .then((response) => {
loadReport() loadReport()
setAmazonAnswerFile([]) setAmazonAnswerFile([])
setWaitingDialog(false)
setShowModal(false) setShowModal(false)
}) })
.catch((e: Error) => { .catch((e: Error) => {
@ -922,6 +925,7 @@ export default function RptPendingAnswerFromAmazon(
</Modal.Body> </Modal.Body>
<Modal.Footer></Modal.Footer> <Modal.Footer></Modal.Footer>
</Modal> </Modal>
<MsgInformativo <MsgInformativo
show={show} show={show}
msg={msg} msg={msg}

Loading…
Cancel
Save