Remove DNS Conflict alerts, they are transparently handled
This commit is contained in:
@@ -11,36 +11,6 @@ function pushAlert(alerts, alert) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function collectDnsConflictAlerts(alerts) {
|
|
||||||
const dualDomains = state.domainsWithBoth ? [...state.domainsWithBoth] : [];
|
|
||||||
if (dualDomains.length === 0) return;
|
|
||||||
|
|
||||||
if (dualDomains.length === 1) {
|
|
||||||
pushAlert(alerts, {
|
|
||||||
id: `dns-conflict-${dualDomains[0]}`,
|
|
||||||
severity: 'warning',
|
|
||||||
source: 'Local DNS',
|
|
||||||
tab: 'local-dns',
|
|
||||||
subTab: 'conflicts',
|
|
||||||
title: `DNS mode conflict: ${dualDomains[0]}`,
|
|
||||||
message: 'This domain has both P2P and public DNS records. Choose which source to use.',
|
|
||||||
details: [dualDomains[0]]
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
pushAlert(alerts, {
|
|
||||||
id: 'dns-conflicts-summary',
|
|
||||||
severity: 'warning',
|
|
||||||
source: 'Local DNS',
|
|
||||||
tab: 'local-dns',
|
|
||||||
subTab: 'conflicts',
|
|
||||||
title: `${dualDomains.length} DNS mode conflicts`,
|
|
||||||
message: 'These domains have both P2P and public DNS records configured.',
|
|
||||||
details: dualDomains.slice(0, 12)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async function collectDomainAlerts(alerts) {
|
async function collectDomainAlerts(alerts) {
|
||||||
let domains;
|
let domains;
|
||||||
try {
|
try {
|
||||||
@@ -369,7 +339,6 @@ async function collectAdminAlerts() {
|
|||||||
collectHealthAlerts(alerts, health);
|
collectHealthAlerts(alerts, health);
|
||||||
collectStatusAlerts(alerts, status);
|
collectStatusAlerts(alerts, status);
|
||||||
collectHostAlerts(alerts);
|
collectHostAlerts(alerts);
|
||||||
await collectDnsConflictAlerts(alerts);
|
|
||||||
await collectDomainAlerts(alerts);
|
await collectDomainAlerts(alerts);
|
||||||
await collectInviteDiagnosticsAlerts(alerts);
|
await collectInviteDiagnosticsAlerts(alerts);
|
||||||
await collectPluginAlerts(alerts);
|
await collectPluginAlerts(alerts);
|
||||||
|
|||||||
Reference in New Issue
Block a user