(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

@@ -10,6 +10,7 @@ and this project adheres to
### Added
- ✨(domains) allow to re-run check on domain if status is failed
- ✨(organization) add `is_active` field
- ✨(domains) notify support when domain status changes #668
- ✨(domains) define domain check interval as a settings

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} />