feat: consolidar desenvolvimentos do portal InvestMoz
This commit is contained in:
@@ -287,12 +287,22 @@ export default function ZoneAttachments({
|
||||
type="button"
|
||||
className={button}
|
||||
disabled={busy}
|
||||
onClick={() =>
|
||||
void send(
|
||||
onClick={() => {
|
||||
setBusy(true);
|
||||
setError('');
|
||||
router.post(
|
||||
`/management/documents/${item.document_id}/malware/retry`,
|
||||
{},
|
||||
)
|
||||
}
|
||||
{
|
||||
preserveScroll: true,
|
||||
onError: () =>
|
||||
setError(
|
||||
'Não foi possível pedir a análise. Actualize o estado antes de repetir.',
|
||||
),
|
||||
onFinish: () => setBusy(false),
|
||||
},
|
||||
);
|
||||
}}
|
||||
>
|
||||
Tentar análise novamente
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user