Skip to content

Commit

Permalink
Merge pull request kodadot#11084 from Jarsen136/issue-11071
Browse files Browse the repository at this point in the history
fix: Royalty Rate (%) - not intiutive in Create
  • Loading branch information
vikiival authored Oct 6, 2024
2 parents 104c1da + 9fd8d90 commit e2af23f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
28 changes: 15 additions & 13 deletions components/bsx/Create/RoyaltyForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@
:max="99.99"
/>

<BasicSwitch
v-model="isMine"
label="mint.royalty.mine"
data-testid="royalty-form-switch"
/>
<AddressInput
v-show="!isMine"
v-model="vAddress"
label="mint.royalty.receiver"
data-testid="royalty-form-custom-address"
:strict="false"
empty-on-error
/>
<template v-if="Number(vRoyalty)">
<BasicSwitch
v-model="isMine"
:label="isMine ? 'mint.royalty.mine' : 'mint.royalty.custom'"
data-testid="royalty-form-switch"
/>
<AddressInput
v-show="!isMine"
v-model="vAddress"
label="mint.royalty.receiver"
data-testid="royalty-form-custom-address"
:strict="false"
empty-on-error
/>
</template>
</div>
</template>

Expand Down
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,7 @@
"progress": "In Progress",
"requiredDeposit": "A deposit of <strong>{0}</strong> is required to create a {1}. Please note, this initial deposit is refundable.",
"royalty": {
"custom": "Pay royalties to a specific account",
"mine": "Pay royalties to the creator account",
"rate": "Royalty Rate (%)",
"receiver": "Destination account for royalty"
Expand Down

0 comments on commit e2af23f

Please sign in to comment.