Skip to content
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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: edit collection
Jarsen136 committed Dec 6, 2024
commit bc09014aced79b0d006f810882fbb0e41e9161bb
6 changes: 3 additions & 3 deletions components/collection/EditModal.vue
Original file line number Diff line number Diff line change
@@ -148,8 +148,8 @@
</div>

<div>
<div class="flex justify-between">
<p>{{ $t('mint.collection.permission.noPriceSet') }}</p>
<div class="flex justify-between capitalize">
<p>{{ $t(mintingPriceUnset ? 'mint.collection.permission.noPriceSet' : 'mint.collection.permission.pricePlaceholder') }}</p>
<NeoSwitch
v-model="mintingPriceUnset"
position="left"
@@ -206,7 +206,7 @@ export type CollectionEditMetadata = {
mintingSettings: CollectionMintSetting
}

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 }))

const emit = defineEmits(['submit'])
const props = defineProps<{
1 change: 1 addition & 0 deletions components/collection/HeroButtonEditCollection.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<NeoDropdownItem
:disabled="!collectionMetadata"
@click="isModalActive = true"
>
{{ $t('moreActions.editCollection') }}