Skip to content

Commit

Permalink
Field title and placeholder tweaks to improve UX (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoffeexbt authored Sep 23, 2023
1 parent c09f9db commit e46fb7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions templates/nostrnip5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ <h6 class="text-subtitle1 q-my-none">
filled
dense
v-model.trim="formDialog.data.amount"
label="Amount"
placeholder="How much do you want to charge?"
label="Price"
placeholder="How much do you want to charge per address?"
></q-input>
<q-input
filled
Expand Down Expand Up @@ -287,7 +287,7 @@ <h6 class="text-subtitle1 q-my-none">
dense
v-model.trim="addressFormDialog.data.pubkey"
label="Public Key"
placeholder="npub..."
placeholder="npub or hex"
></q-input>
<q-input
filled
Expand Down
2 changes: 1 addition & 1 deletion views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async def api_address_create(

if len(bytes.fromhex(post_data.pubkey)) != 32:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND, detail="Pubkey must be in hex format."
status_code=HTTPStatus.NOT_FOUND, detail="Pubkey must be in npub or hex format."
)

address = await create_address_internal(domain_id=domain_id, data=post_data)
Expand Down

0 comments on commit e46fb7b

Please sign in to comment.