(domains) allow to re-run check on failed domain

In use we realize that it is also necessary to be able
to re-run dimail check on domain failed
This commit is contained in:
Sabrina Demagny
2025-03-28 15:03:11 +01:00
parent fbe3aa54d0
commit 838d1267b2
2 changed files with 19 additions and 0 deletions

View File

@@ -228,6 +228,24 @@ export const MailDomainView = ({ mailDomain, onMailDomainUpdate }: Props) => {
{t('Actions required')}
</button>
)}
{mailDomain?.status === 'failed' && (
<button
onClick={handleShowModal}
style={{
padding: '5px 10px',
marginLeft: '10px',
backgroundColor: '#e1000f',
border: 'none',
color: 'white',
cursor: 'pointer',
fontWeight: '500',
borderRadius: '5px',
}}
data-modal="mail-domain-status"
>
{t('Failed')}
</button>
)}
</Box>
</Box>
<CustomTabs tabs={tabs} />