|
@@ -37,6 +37,7 @@ import type {
|
|
|
SmtpCredential,
|
|
SmtpCredential,
|
|
|
SmtpRelay
|
|
SmtpRelay
|
|
|
} from '../../frontend/types';
|
|
} from '../../frontend/types';
|
|
|
|
|
+import Webhooks from '../Webhooks';
|
|
|
|
|
|
|
|
interface DomainDetailProps {
|
|
interface DomainDetailProps {
|
|
|
domain: Domain;
|
|
domain: Domain;
|
|
@@ -157,7 +158,11 @@ export default function DomainDetail({
|
|
|
},
|
|
},
|
|
|
{ key: 'logs', label: 'Sending Logs', children: <SendingLogsTab events={domainEvents} /> },
|
|
{ key: 'logs', label: 'Sending Logs', children: <SendingLogsTab events={domainEvents} /> },
|
|
|
{ key: 'guide', label: 'Integration Guide', children: <IntegrationGuideTab domain={domain} config={config} apiTokens={apiTokens} /> },
|
|
{ key: 'guide', label: 'Integration Guide', children: <IntegrationGuideTab domain={domain} config={config} apiTokens={apiTokens} /> },
|
|
|
- { key: 'webhooks', label: 'Webhooks', children: <Placeholder title="Webhooks" /> }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ key: 'webhooks',
|
|
|
|
|
+ label: 'Webhooks',
|
|
|
|
|
+ children: <Webhooks domainId={domain.id} domains={[domain]} onCopy={onCopy} />
|
|
|
|
|
+ }
|
|
|
]}
|
|
]}
|
|
|
/>
|
|
/>
|
|
|
<Modal title={t('domainDetail.editTitle')} open={editOpen} onCancel={() => setEditOpen(false)} onOk={saveEdit} confirmLoading={actionLoading}>
|
|
<Modal title={t('domainDetail.editTitle')} open={editOpen} onCancel={() => setEditOpen(false)} onOk={saveEdit} confirmLoading={actionLoading}>
|
|
@@ -425,15 +430,6 @@ function IntegrationGuideTab({
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function Placeholder({ title }: { title: string }) {
|
|
|
|
|
- const { t } = useI18n();
|
|
|
|
|
- return (
|
|
|
|
|
- <SectionCard>
|
|
|
|
|
- <EmptyState description={`${title} ${t('domainDetail.placeholder')}`} />
|
|
|
|
|
- </SectionCard>
|
|
|
|
|
- );
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
function orderedRecords(records: DnsRecord[]) {
|
|
function orderedRecords(records: DnsRecord[]) {
|
|
|
return getVisibleDnsRecords(records);
|
|
return getVisibleDnsRecords(records);
|
|
|
}
|
|
}
|