-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: edit collection permission #11217
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, lgtm
components/collection/EditModal.vue
Outdated
|
||
<div> | ||
<div class="flex justify-between"> | ||
<p>{{ $t('mint.collection.permission.noPriceSet') }}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. This text will be changed after toggling.
watchEffect(async () => { | ||
const { apiInstance } = useApi() | ||
const api = await apiInstance.value | ||
const config = await api.query.nfts.collectionConfigOf(collectionId) | ||
const mintSettings = (config.toHuman() as { mintSettings: CollectionMintSetting }).mintSettings | ||
mintSettings.price = mintSettings.price?.replaceAll(',', '') | ||
collectionPermissionSettings.value = mintSettings | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this was added lets disable the edit collection
button if !collectionMetadata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
components/collection/EditModal.vue
Outdated
} | ||
|
||
const COLLECTION_MINTING_TYPES_OPTIONS = ['Issuer', 'Public', 'HolderOf'].map(type => ({ value: type as CollectionMintSettingType, text: type })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe ?
const COLLECTION_MINTING_TYPES_OPTIONS = ['Issuer', 'Public', 'HolderOf'].map(type => ({ value: type as CollectionMintSettingType, text: type })) | |
const COLLECTION_MINTING_TYPES_OPTIONS = (['Issuer', 'Public', 'HolderOf'] as CollectionMintSettingType[] ).map(type => ({ value: type, text: type })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~ incorrect impl
-
It does not make sense to have issuer & price :) (will you pay for yourself?)
-
Setting public & set price > 0 means that you wont be able to mint on koda
2.1 Warning that setting public will allow anyone to mint into your collection -
Holder of is missing search input where user can select which collection is eligible.
3.1 Warning that by setting type to holder of user wont be able to mint on koda
Yes, you are completely right, I apologize for my mistake. (I have edited the comment) I meant
Why search input? Well if you take it from perspective of artist / @JustLuuuu they have no idea what |
I know what a collection ID is! But its true that artists don't know it 😂 |
Quality Gate passedIssues Measures |
Thank you for your contribution to the Koda - Generative Art Marketplace.
👇 __ Let's make a quick check before the contribution.
PR Type
Needs QA check
Context
Screenshot 📸
ref: https://wiki.polkadot.network/docs/learn-nft-pallets