fix: clarify Re-register button purpose with inline hint
Unit Tests / test (push) Successful in 15m24s

Add a short label explaining the button is for DDNS recovery (when the
DDNS server lost your record), not routine IP updates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 14:08:49 -04:00
parent 742e4209ee
commit 01027c171e
+10 -7
View File
@@ -894,13 +894,16 @@ function Settings() {
Your cell is registered as <span className="font-mono font-semibold">{domainName || `${identity.cell_name}.pic.ngo`}</span> on pic.ngo. Your cell is registered as <span className="font-mono font-semibold">{domainName || `${identity.cell_name}.pic.ngo`}</span> on pic.ngo.
Change the Cell Name above to update this subdomain. Change the Cell Name above to update this subdomain.
</div> </div>
<button <div className="flex items-center gap-3">
onClick={reRegister} <button
disabled={ddnsRegistering} onClick={reRegister}
className="px-3 py-1.5 text-xs font-medium rounded border border-blue-300 text-blue-700 hover:bg-blue-50 disabled:opacity-50" disabled={ddnsRegistering}
> className="px-3 py-1.5 text-xs font-medium rounded border border-blue-300 text-blue-700 hover:bg-blue-50 disabled:opacity-50"
{ddnsRegistering ? 'Registering…' : 'Re-register with pic.ngo'} >
</button> {ddnsRegistering ? 'Registering…' : 'Re-register with pic.ngo'}
</button>
<span className="text-xs text-gray-400">Use if DDNS lost your record sends current public IP</span>
</div>
</div> </div>
)} )}
{domainMode === 'cloudflare' && ( {domainMode === 'cloudflare' && (