fix(profiles): label-only rename for secretless remote-signer profiles

This commit is contained in:
Avi 2026-09-23 14:44:18 -05:00
commit 6ebc364fcf
2 changed files with 66 additions and 3 deletions

View file

@ -576,9 +576,11 @@ function RenameModal({
npub: target.npub,
perform: () => renameProfile(target.npub, trimmed),
successMessage: (report) =>
report.failed.length === 0
? `Renamed to "${trimmed}" and published to ${report.succeeded.length} relay(s). It may take a minute to appear on other clients.`
: `Renamed to "${trimmed}", but ${report.failed.length} relay(s) did not accept it. Use "Publish name" to retry.`,
report.succeeded.length === 0 && report.failed.length === 0
? `Renamed to "${trimmed}" (saved on this device; external-signer profiles publish their name from the signer app).`
: report.failed.length === 0
? `Renamed to "${trimmed}" and published to ${report.succeeded.length} relay(s). It may take a minute to appear on other clients.`
: `Renamed to "${trimmed}", but ${report.failed.length} relay(s) did not accept it. Use "Publish name" to retry.`,
onSaved,
onError,
onSavingChange,