Skip to content

Commit

Permalink
Merge pull request kodadot#10784 from Jarsen136/issue-10782
Browse files Browse the repository at this point in the history
fix: Hide immutable, Base in Create
  • Loading branch information
vikiival authored Aug 10, 2024
2 parents 94ed8c0 + 70ad861 commit c8e5b54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions components/create/CreateCollection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,10 @@ const royalty = ref({
})
const menus = availablePrefixes().filter(
menu => menu.value !== 'ksm' && menu.value !== 'rmrk',
)
(menu) => {
const { isRemark, isEvm } = useIsChain(computed(() => menu.value as Prefix))
return !isRemark.value && !isEvm.value
})
const chainByPrefix = menus.find(menu => menu.value === urlPrefix.value)
const selectBlockchain = ref(chainByPrefix?.value || menus[0].value)
Expand Down
7 changes: 5 additions & 2 deletions components/create/CreateNft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,11 @@ const imagePreview = computed(() => {
// select available blockchain
const menus = availablePrefixes().filter(
menu => menu.value !== 'ksm' && menu.value !== 'rmrk',
)
(menu) => {
const { isRemark, isEvm } = useIsChain(computed(() => menu.value as Prefix))
return !isRemark.value && !isEvm.value
})
const chainByPrefix = computed(() =>
menus.find(menu => menu.value === urlPrefix.value),
)
Expand Down

0 comments on commit c8e5b54

Please sign in to comment.