fix(profiles): label-only rename for secretless remote-signer profiles
This commit is contained in:
parent
ca62111092
commit
6ebc364fcf
2 changed files with 66 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue