Fix bidirectional sync UI issues

This commit is contained in:
2026-02-01 14:56:20 +08:00
parent 847933b7c0
commit 56ad83bbaf
4 changed files with 17 additions and 7 deletions

View File

@@ -718,8 +718,12 @@
</ol>
</div>
`;
wizardLink.href = '/ui/sites/replication-wizard/' + encodeURIComponent(siteId);
wizardLink.classList.remove('d-none');
const blockingErrors = ['NO_CONNECTION', 'CONNECTION_NOT_FOUND', 'REMOTE_UNREACHABLE', 'ENDPOINT_NOT_ALLOWED'];
const hasBlockingError = data.issues && data.issues.some(i => blockingErrors.includes(i.code));
if (!hasBlockingError) {
wizardLink.href = '/ui/sites/peers/' + encodeURIComponent(siteId) + '/replication-wizard';
wizardLink.classList.remove('d-none');
}
}
contentDiv.innerHTML = html;